summaryrefslogtreecommitdiff
path: root/src/interfaces/jdbc/org/postgresql/jdbc2
diff options
context:
space:
mode:
authorBarry Lind <barry@xythos.com>2002-03-27 05:33:27 +0000
committerBarry Lind <barry@xythos.com>2002-03-27 05:33:27 +0000
commit2442e79e3276a6c4f29e5a415858c7a487ec18b2 (patch)
tree7dc71fd0f8a2ef8ef70ed9c00400b9dbd9c76fa2 /src/interfaces/jdbc/org/postgresql/jdbc2
parente68eb63e8cca8ebe7516b528f82c9e673fa4d230 (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.java3
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);