1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-21 16:02:15 +03:00

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)
This commit is contained in:
Barry Lind
2002-03-27 05:33:27 +00:00
parent e68eb63e8c
commit 2442e79e32
3 changed files with 11 additions and 4 deletions

View File

@ -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);