Updatable ResultSets need to check for an empty ResultSet because
Kris Jurka <books@ejurka.com>
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.
Files
| Path | Change | +/− |
|---|---|---|
| src/interfaces/jdbc/org/postgresql/errors.properties | modified | +1 −0 |
| src/interfaces/jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java | modified | +8 −4 |