dbTalk Databases Forums  

Re: [BUGS] BUG #2514: (jdbc driver) Multiple inlined statements with

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss Re: [BUGS] BUG #2514: (jdbc driver) Multiple inlined statements with in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
AT
 
Posts: n/a

Default Re: [BUGS] BUG #2514: (jdbc driver) Multiple inlined statements with - 07-06-2006 , 08:25 PM








On Wed, 5 Jul 2006, Gilles wrote:

Quote:
Bug reference: 2514
Description: (jdbc driver) Multiple inlined statements with mixed
updates and queries return wrong results
Details:

When issuing this:
statement.execute("SELECT 2;UPDATE foo SET d='babar' where i=1; SELECT 3");
The 2 result returned is wrong. This seems to be a ResultSet containing the
same values as the first RS (it should be an update count)

Fixed in CVS for 8.0, 8.1 and 8.2dev. It was mistakenly retaining some
state from the first SELECT when issuing the update. I've put up a
temporary jar file here if you need a fix before the next official
releases. http://www.ejurka.com/pgsql/jars/gr/

Kris Jurka

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.