From: Peter Neu <peter.neu@gmx.net>
To: pgsql-jdbc@postgresql.org
Cc: 'Roland Walter' <roland.walter.rwa@gmx.net>
Subject: Re: Efficient Insert statement for one record into multiple
Date: Tue, 19 Dec 2006 11:18:36 +0100
Message-ID: <00f201c72357$0ba220d0$bcc8a8c0@PCMELZER> (raw)
In-Reply-To: <4586C04D.5070008@gmx.net>
Hello,
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?
Cheers,
Pete
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: peter.neu@gmx.net, roland.walter.rwa@gmx.net
Subject: Re: Efficient Insert statement for one record into multiple
In-Reply-To: <00f201c72357$0ba220d0$bcc8a8c0@PCMELZER>
References: <4586C04D.5070008@gmx.net> <00f201c72357$0ba220d0$bcc8a8c0@PCMELZER>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox