Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UCt0t-0001rr-4s for pgsql-jdbc@arkaria.postgresql.org; Tue, 05 Mar 2013 14:38:43 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UCt0s-0001RE-H5 for pgsql-jdbc@arkaria.postgresql.org; Tue, 05 Mar 2013 14:38:42 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UCt0s-0001R9-1B for pgsql-jdbc@postgresql.org; Tue, 05 Mar 2013 14:38:42 +0000 Received: from mx1.redhat.com ([209.132.183.28]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UCt0o-00080U-Nq for pgsql-jdbc@postgresql.org; Tue, 05 Mar 2013 14:38:41 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r25EcWOx030236 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 5 Mar 2013 09:38:32 -0500 Received: from [10.32.224.229] (dhcp-1-229.lcy.redhat.com [10.32.224.229]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id r25EcVkK017864; Tue, 5 Mar 2013 09:38:32 -0500 Message-ID: <51360367.4080302@redhat.com> Date: Tue, 05 Mar 2013 14:38:31 +0000 From: Jeremy Whiting User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2 MIME-Version: 1.0 To: Craig Ringer CC: pgsql-jdbc@postgresql.org Subject: Re: executeUpdate API contract. Return value equals 0. References: <512CB568.70709@redhat.com> <513033BC.3080203@2ndquadrant.com> In-Reply-To: <513033BC.3080203@2ndquadrant.com> X-Enigmail-Version: 1.5.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 X-Pg-Spam-Score: -7.5 (-------) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org On 01/03/13 04:51, Craig Ringer wrote: > 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? Sorry for the delay. Tracked down the email thread and I think I have my facts sightly wrong regarding who said what. The thread was initially raised in the context of using Hibernate. Hibernate was reporting a problem. http://www.postgresql.org/message-id/000801cd9b5a$12717600$37546200$@radiantblue.com Though the cause of the error was attributed to Hibernate by Jaime. http://www.postgresql.org/message-id/CAJKUy5i6_pxNmvzu+JTXaoWy3eEynNFdrOnGdNPPoh1XbeZmQA@mail.gmail.com > I don't see how PgJDBC can return rowcounts when trigger-based > partitioning doesn't produce them. So any sanity checks by Hibernate will result in an assertion failure. >> 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_test > The test case looks reasonable to me at a quick scan; haven't merged and > run it yet. > -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc