From: | Markus Schaber <schabi(at)logix-tt(dot)com> |
---|---|
To: | pgsql-jdbc(at)postgresql(dot)org |
Subject: | Re: Efficient Insert statement for one record into multiple |
Date: | 2006-12-19 11:03:52 |
Message-ID: | 20061219120352.7ebf0ffc@kingfisher.sec.intern.logix-tt.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
Hi, Peter,
"Peter Neu" <peter(dot)neu(at)gmx(dot)net> wrote:
> the insertion within the same connection objects works just fine. ;o)
> One thing which still keeps me thinking is how should I handle duplicate
> key exceptions when it happens in the first insert? Should I just close
> the connection object in the catch clause when this happens in the first
> statement so the second statement hits an AlreadyClosedConnectionException?
Why execute the second statement at all?
Maybe you should rework the control flow of your application.
Regards,
Markus
--
Markus Schaber | Logical Tracking&Tracing International AG
Dipl. Inf. | Software Development GIS
Fight against software patents in Europe! www.ffii.org
www.nosoftwarepatents.org
From | Date | Subject | |
---|---|---|---|
Next Message | Dave Cramer | 2006-12-19 11:09:47 | Re: Efficient Insert statement for one record into multiple |
Previous Message | Peter Neu | 2006-12-19 10:18:36 | Re: Efficient Insert statement for one record into multiple |