Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with record resultset to call primary composite [JDBC108] #148

Closed
firebird-automations opened this issue Dec 5, 2007 · 5 comments

Comments

@firebird-automations
Copy link

Submitted by: Oscar Zelada (oszeladap)

Assigned to: Roman Rokytskyy (rrokytskyy)

Depends on JDBC119

Because updated records of the table that are not in the resulset seems to be updating the records that are consistent only with the first field in the primary key

example:
TABLA=DEMO1
sistema codigo campo valor
002 1 UNO 100
002 2 DOS 200
002 3 TRES 5000
002 5 UNO 300
002 10 DOS 100
002 20 UNO 200

PRIMARY KEY = CAMPO+CODIGO+SISTEMA

create resultset con sentencia = " SELECT * FROM DEMO1 WHERE SISTEMA='002' AND CODIGO=20"

GET AFTER THE RESULTSET WITH THESE RECORDS

sistema codigo campo valor
002 20 UNO 200

To upgrade the field "valor" of 200 to 10 with:

rs.updateInt("VALOR",10);
rs.updaterow();
rs.close

In the BD records were updated so
sistema codigo campo valor
002 1 UNO 10 (*)
002 2 DOS 200
002 3 TRES 5000
002 5 UNO 10 (*)
002 10 DOS 100
002 20 UNO 10 (*)

Because these results ?

@firebird-automations
Copy link
Author

Modified by: Roman Rokytskyy (rrokytskyy)

Link: This issue depends on JDBC119 [ JDBC119 ]

@firebird-automations
Copy link
Author

Commented by: Roman Rokytskyy (rrokytskyy)

see linked issue

@firebird-automations
Copy link
Author

Modified by: Roman Rokytskyy (rrokytskyy)

Version: Jaybird 2.1.5 [ 10284 ]

Version: Jaybird 2.1.4 [ 10283 ]

Version: Jaybird 2.1.3 [ 10252 ]

Version: Jaybird 2.1.6 [ 10285 ]

Version: Jaybird 2.2 [ 10053 ]

Fix Version: Jaybird 2.1.6 [ 10285 ]

Fix Version: Jaybird 2.2 [ 10053 ]

@firebird-automations
Copy link
Author

Modified by: Roman Rokytskyy (rrokytskyy)

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

@firebird-automations
Copy link
Author

Modified by: Roman Rokytskyy (rrokytskyy)

status: Resolved [ 5 ] => Closed [ 6 ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment