]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Updatable ResultSets need to check for an empty ResultSet because
authorKris Jurka <books@ejurka.com>
Fri, 22 Apr 2005 14:48:18 +0000 (14:48 +0000)
committerKris Jurka <books@ejurka.com>
Fri, 22 Apr 2005 14:48:18 +0000 (14:48 +0000)
commita44f99024c43fa7cb4fb24e62033bc5704e0355c
tree1b33773979dff671138bbadf936597e980e2ce74
parentf5517ddbdafbb34e7aabd9fe041f1cbb24aad1f5
Updatable ResultSets need to check for an empty ResultSet because
isBeforeFirst and isAfterLast both return false for an empty result
so the checking to make sure the user is on a valid row wasn't
working.

Also don't allow an insert without specifying at least one column
value because INSERT INTO tab() values() is a syntax error.
src/interfaces/jdbc/org/postgresql/errors.properties
src/interfaces/jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java