From: Craig Ringer <craig@2ndquadrant.com>
To: Jeremy Whiting <jwhiting@redhat.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: executeUpdate API contract. Return value equals 0.
Date: Fri, 01 Mar 2013 12:51:08 +0800
Message-ID: <513033BC.3080203@2ndquadrant.com> (raw)
In-Reply-To: <512CB568.70709@redhat.com>
References: <512CB568.70709@redhat.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>
On 02/26/2013 09:15 PM, Jeremy Whiting wrote:
> Hi,
> I have seen there have been conversations about the returned value from
> executeUpdate when using partitioned tables. This thread places the
> issue in the postgres-server court:
>
> http://www.postgresql.org/message-id/013901c5fad9$1c18c600$ca78a8c0@yawin.yesasia.com
>
> and another coversation on the pgsql-bugs mailing list that seems to
> bat the problem back at the pgjdbc driver :)
Really? I either didn't see that thread or forgot it. Link?
I don't see how PgJDBC can return rowcounts when trigger-based
partitioning doesn't produce them.
>
> I have written a test case for the driver and made it available on
> GitHub. It is compatible with the current testsuit. It is there for you
> to consider it's merits and use it if considered useful. I would like to
> think it gives this issue visibility.
>
> https://github.com/whitingjr/pgjdbc/tree/partitioned_table_testThe test case looks reasonable to me at a quick scan; haven't merged and
run it yet.
--
Craig Ringer http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
--
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc
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: craig@2ndquadrant.com, jwhiting@redhat.com
Subject: Re: executeUpdate API contract. Return value equals 0.
In-Reply-To: <513033BC.3080203@2ndquadrant.com>
References: <512CB568.70709@redhat.com> <513033BC.3080203@2ndquadrant.com>
* 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