dbTalk Databases Forums  

[BUGS] BUG #1233: JDBC driver: moveToCurrentRow fails

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


Discuss [BUGS] BUG #1233: JDBC driver: moveToCurrentRow fails in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
PostgreSQL Bugs List
 
Posts: n/a

Default [BUGS] BUG #1233: JDBC driver: moveToCurrentRow fails - 08-27-2004 , 05:01 AM







The following bug has been logged online:

Bug reference: 1233
Logged by: David Bucciarelli

Email address: dbucciarelli (AT) tradesoft (DOT) it

PostgreSQL version: 7.4.3

Operating system: Linux Suse 9.0

Description: JDBC driver: moveToCurrentRow fails

Details:

The method moveToCurrentRow in the ResultSet class of the JDBC driver fails
with the following message:

"Result Set not updateable. The query that generated this result set must
select only one table, and must select all primary keys from that table. See
the JDBC 2.1 API Specification, section 5.6 for more details."

even if the query _include_ all primary keys and selects only one table (the
same code works fine with other JDBC drivers: i.e. MySql).

I guess this happen because the code at line 679 of the
org.postgresql.jdbc2.AbstractJdbc2ResultSet.moveTo CurrentRow should be:

if ( !isUpdateable() )

instead of:

if (!updateable)

Thanks and my best regards,
David Bucciarelli




---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo (AT) postgresql (DOT) org so that your
message can get through to the mailing list cleanly

Reply With Quote
  #2  
Old   
Kris Jurka
 
Posts: n/a

Default Re: [BUGS] BUG #1233: JDBC driver: moveToCurrentRow fails - 09-13-2004 , 04:12 AM








Quote:
Bug reference: 1233
Description: JDBC driver: moveToCurrentRow fails

Fixed in 7.4 and 8.0 branches. Thanks for the fix and sorry for the
delay, I've been travelling.

Kris Jurka

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster


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.