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

Updateable result sets need primary key [JDBC165] #209

Closed
firebird-automations opened this issue Nov 11, 2010 · 3 comments
Closed

Updateable result sets need primary key [JDBC165] #209

firebird-automations opened this issue Nov 11, 2010 · 3 comments

Comments

@firebird-automations
Copy link

Submitted by: Steffen Heil (firebirdsql.org_partner.sh-solutions.de)

Assigned to: Roman Rokytskyy (rrokytskyy)

When using updateable resultsets the release notes indicate that you can update only simple queries containing either all fields forming a unique key (primary key) or rdb$db_key. However, the later does not work. I had to include the primary key instead of rdb$db_key to make the queries work.

Sample:

Statement statement = connection.createStatement(
ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE );
ResultSet data = statement.executeQuery( "select rdb$db_key, value from
some$table" );
while ( data.next() ) {
data.updateInt( 2, f(data.getInt( 2 ) ) );
data.updateRow();
}
data.close();
statement.close();

Commits: f673436

@firebird-automations
Copy link
Author

Modified by: Roman Rokytskyy (rrokytskyy)

Fix Version: Jaybird 2.2 [ 10053 ]

timeestimate: 0 [ 0 ]

timeoriginalestimate: 0 [ 0 ]

@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: @mrotteveel

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

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

No branches or pull requests

1 participant