Applied patch from Oliver Jowett to better handle invalid input for getArray
authorBarry Lind <barry@xythos.com>
Mon, 11 Aug 2003 21:33:50 +0000 (21:33 +0000)
committerBarry Lind <barry@xythos.com>
Mon, 11 Aug 2003 21:33:50 +0000 (21:33 +0000)
(no longer throw an index out of range exception)

 Modified Files:
  jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java

src/interfaces/jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java

index fdc59babe524f11cea8cb4ff918863fec730d9ff..5692ba0c0ce601b8418dcbd0fb9f8e8e2442b099 100644 (file)
@@ -253,6 +253,8 @@ public abstract class AbstractJdbc2ResultSet extends org.postgresql.jdbc1.Abstra
 
        public java.sql.Array getArray(int i) throws SQLException
        {
+               checkResultSet( i );
+
                wasNullFlag = (this_row[i - 1] == null);
                if (wasNullFlag)
                        return null;