Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TtiIa-0008By-6T for pgsql-jdbc@arkaria.postgresql.org; Fri, 11 Jan 2013 17:21:44 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1TtiIZ-0002tq-5E for pgsql-jdbc@arkaria.postgresql.org; Fri, 11 Jan 2013 17:21:43 +0000 Received: from magus.postgresql.org ([87.238.57.229]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TtiIY-0002th-JP; Fri, 11 Jan 2013 17:21:42 +0000 Received: from mail63.csoft.net ([205.205.214.4]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TtiIV-0000iR-Lq; Fri, 11 Jan 2013 17:21:42 +0000 Received: from leary.csoft.net (leary.csoft.net [205.205.214.5]) by mail63.csoft.net (Postfix) with ESMTP id B026D28408; Fri, 11 Jan 2013 12:21:37 -0500 (EST) Received: by leary.csoft.net (Postfix, from userid 1112) id 84AE31FBC8; Fri, 11 Jan 2013 12:21:37 -0500 (EST) Date: Fri, 11 Jan 2013 12:21:37 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Stefan Reiser cc: Dave Cramer , Tom Lane , zelaine@amazon.com, pgsql-bugs@postgresql.org, List Subject: Re: [BUGS] BUG #7766: Running a DML statement that affects more than 4 billion rows results in an exception In-Reply-To: <50F03093.6060005@tu-braunschweig.de> Message-ID: References: <17929.1356108458@sss.pgh.pa.us> <6059.1356121026@sss.pgh.pa.us> <50F03093.6060005@tu-braunschweig.de> User-Agent: Alpine 2.00 (BSO 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Pg-Spam-Score: -1.9 (-) 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 Fri, 11 Jan 2013, Stefan Reiser wrote: > What about returning Statement.SUCCESS_NO_INFO as it says in > http://docs.oracle.com/javase/6/docs/api/java/sql/BatchUpdateException.html#getUpdateCounts%28%29 > and > http://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#executeBatch%28%29 > > It seems better to report no number at all rather than a number (INT_MAX) that > is known to be wrong. What about Statement.executeUpdate? It has provision for returing a batch execution response code. Kris Jurka -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc