Do not use ResultSet.isLast() since Oracle JDBC driver does not implement it.

This commit is contained in:
hns 2002-11-18 14:11:05 +00:00
parent 0f84163d78
commit 8c25c9f30b

View file

@ -1046,9 +1046,9 @@ public final class NodeManager {
if (!rs.next ())
return null;
if (!rs.isLast ())
throw new RuntimeException ("More than one value returned by query.");
node = new Node (dbm, rs, safe);
if (rs.next ())
throw new RuntimeException ("More than one value returned by query.");
} finally {
if (stmt != null) try {
@ -1114,9 +1114,9 @@ public final class NodeManager {
if (!rs.next ())
return null;
if (!rs.isLast ())
throw new RuntimeException ("More than one value returned by query.");
node = new Node (rel.otherType, rs, safe);
if (rs.next ())
throw new RuntimeException ("More than one value returned by query.");
// Check if node is already cached with primary Key.
if (!rel.usesPrimaryKey()) {