Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UBHwJ-00070e-Vm for pgsql-jdbc@arkaria.postgresql.org; Fri, 01 Mar 2013 04:51:24 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UBHwJ-0004fr-Fd for pgsql-jdbc@arkaria.postgresql.org; Fri, 01 Mar 2013 04:51:23 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UBHwI-0004fl-LT for pgsql-jdbc@postgresql.org; Fri, 01 Mar 2013 04:51:22 +0000 Received: from outmail148111.authsmtp.net ([62.13.148.111]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UBHwD-0007FV-Ht for pgsql-jdbc@postgresql.org; Fri, 01 Mar 2013 04:51:22 +0000 Received: from mail-c232.authsmtp.com (mail-c232.authsmtp.com [62.13.128.232]) by punt8.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id r214pGSp058329; Fri, 1 Mar 2013 04:51:16 GMT Received: from ayaki.localdomain (124-169-162-93.dyn.iinet.net.au [124.169.162.93]) (authenticated bits=0) by mail.authsmtp.com (8.14.2/8.14.2/) with ESMTP id r214p9le046974 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Fri, 1 Mar 2013 04:51:13 GMT Message-ID: <513033BC.3080203@2ndquadrant.com> Date: Fri, 01 Mar 2013 12:51:08 +0800 From: Craig Ringer Organization: 2nd Quadrant User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2 MIME-Version: 1.0 To: Jeremy Whiting CC: pgsql-jdbc@postgresql.org Subject: Re: executeUpdate API contract. Return value equals 0. References: <512CB568.70709@redhat.com> In-Reply-To: <512CB568.70709@redhat.com> X-Enigmail-Version: 1.5.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Server-Quench: a5897d77-822b-11e2-b10b-0025903375e2 X-AuthReport-Spam: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-AuthRoute: OCdxZQATClZeVg0b BQteCiNZVAwpPBRK HVkIKg5MJUcNSQVJ NksadBtFaARbYFhD HGQLWldEUFl7XGJ/ ag4fbAdZfEtIVhtr VkpXS1FNFgBqBAMA SFwcUx0yflkTeHp2 bEFmEHVaVUc0JEN1 S0kAEmobbWViOn0e URVaalFVcFFXfh9H b1l/V3AKZDAFKBg1 TUcAHRwbFgAXJTRY SRwRIG8KTU8XE3YV fzFKFjIpAVcMTDl1 ZyYrNkMGGg4PO0Ev PBMsQE8RNwRaUks2 X-Authentic-SMTP: 61633235383639.1019:706 X-AuthFastPath: 0 (Was 255) X-AuthSMTP-Origin: 124.169.162.93/2525 X-AuthVirus-Status: No virus detected - but ensure you scan with your own anti-virus system. X-Pg-Spam-Score: -2.6 (--) 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 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_test The 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