pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kris Jurka <books@ejurka.com>
To: Dave Cramer <pg@fastcrypt.com>
Cc: Stefan Reiser <s.reiser@tu-braunschweig.de>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: zelaine@amazon.com
Cc: pgsql-bugs@postgresql.org
Cc: List <pgsql-jdbc@postgresql.org>
Subject: Re: [BUGS] BUG #7766: Running a DML statement that affects more than 4 billion rows results in an exception
Date: Fri, 11 Jan 2013 12:23:18 -0500 (EST)
Message-ID: <alpine.BSO.2.00.1301111221410.28737@leary.csoft.net> (raw)
In-Reply-To: <CADK3HH+o_RMO6DUv3H9j-Fd8drb2GrLr8aGTYpN06u_zxdtkCQ@mail.gmail.com>
References: <E1Tlli5-0007tR-HO@wrigleys.postgresql.org>
	<17929.1356108458@sss.pgh.pa.us>
	<CADK3HH+JgxrrT7K7tbyHLT0pqqnmqQNoPC6keHV3uChRq1ah4w@mail.gmail.com>
	<6059.1356121026@sss.pgh.pa.us>
	<CADK3HHLaQ96jMrf4RLRpseADdFOwD0DxOp9xF4C2OiEOBzmroA@mail.gmail.com>
	<50F03093.6060005@tu-braunschweig.de>
	<CADK3HHJ+yARXuNY5SxSkhFuvQfkyrHYTsOhss6uASJ4A49JHfQ@mail.gmail.com>
	<CADK3HH+o_RMO6DUv3H9j-Fd8drb2GrLr8aGTYpN06u_zxdtkCQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>



On Fri, 11 Jan 2013, Dave Cramer wrote:

> Ok, I've pushed this fix into master
> 

You've made any failure to parse the affected row count return 
SUCCESS_NO_INFO.  Shouldn't you change the integer parsing to a long 
parsing and only modify the response if the value is > INT_MAX while still 
throwing an exception if we get something that is truly undecipherable?

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



view thread (19+ messages)  latest in thread

Message-ID: <alpine.BSO.2.00.1301111221410.28737@leary.csoft.net>
Permalink:  ../alpine.BSO.2.00.1301111221410.28737@leary.csoft.net/
Also on:    postgresql.org/message-id/alpine.BSO.2.00.1301111221410.28737@leary.csoft.net

 · 

reply

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: books@ejurka.com, pg@fastcrypt.com, s.reiser@tu-braunschweig.de, tgl@sss.pgh.pa.us, zelaine@amazon.com, pgsql-bugs@postgresql.org
  Subject: Re: [BUGS] BUG #7766: Running a DML statement that affects more than 4 billion rows results in an exception
  In-Reply-To: <alpine.BSO.2.00.1301111221410.28737@leary.csoft.net>
  References: <E1Tlli5-0007tR-HO@wrigleys.postgresql.org> <17929.1356108458@sss.pgh.pa.us> <CADK3HH+JgxrrT7K7tbyHLT0pqqnmqQNoPC6keHV3uChRq1ah4w@mail.gmail.com> <6059.1356121026@sss.pgh.pa.us> <CADK3HHLaQ96jMrf4RLRpseADdFOwD0DxOp9xF4C2OiEOBzmroA@mail.gmail.com> <50F03093.6060005@tu-braunschweig.de> <CADK3HHJ+yARXuNY5SxSkhFuvQfkyrHYTsOhss6uASJ4A49JHfQ@mail.gmail.com> <CADK3HH+o_RMO6DUv3H9j-Fd8drb2GrLr8aGTYpN06u_zxdtkCQ@mail.gmail.com> <alpine.BSO.2.00.1301111221410.28737@leary.csoft.net>

* 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