mirror of
https://github.com/postgres/postgres.git
synced 2025-06-17 17:02:08 +03:00
Added a check for not calling next() before getting objects from the result set,
moved the check for columnIndex into same call check at the top of all getXXX added appropriate error
This commit is contained in:
@ -255,5 +255,10 @@ public abstract class ResultSet
|
||||
else
|
||||
this.warnings = warnings;
|
||||
}
|
||||
protected void checkResultSet( int column ) throws SQLException
|
||||
{
|
||||
if ( this_row == null ) throw new PSQLException("postgresql.res.nextrequired");
|
||||
if ( column < 1 || column > fields.length ) throw new PSQLException("postgresql.res.colrange" );
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user