diff options
author | Barry Lind <barry@xythos.com> | 2002-03-27 05:33:27 +0000 |
---|---|---|
committer | Barry Lind <barry@xythos.com> | 2002-03-27 05:33:27 +0000 |
commit | 2442e79e3276a6c4f29e5a415858c7a487ec18b2 (patch) | |
tree | 7dc71fd0f8a2ef8ef70ed9c00400b9dbd9c76fa2 /src/interfaces/jdbc/org/postgresql/jdbc2 | |
parent | e68eb63e8cca8ebe7516b528f82c9e673fa4d230 (diff) |
applied patch from Liam Stewart fixing a message in the properties file
also fixed a NPE when calling the next() method on a result set after the
connection or resultset has been closed. (bug reported by Hans Deragon)
Diffstat (limited to 'src/interfaces/jdbc/org/postgresql/jdbc2')
-rw-r--r-- | src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java b/src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java index d9e37035ee5..20c68016ca8 100644 --- a/src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java +++ b/src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java @@ -110,6 +110,9 @@ public class ResultSet extends org.postgresql.ResultSet implements java.sql.Resu */ public boolean next() throws SQLException { + if (rows == null) + throw new PSQLException("postgresql.con.closed"); + if (++current_row >= rows.size()) return false; this_row = (byte [][])rows.elementAt(current_row); |