8000 Applied patch from Oliver Jowett to better handle invalid input for g… · codeimmortal/postgres@c9fa287 · GitHub
[go: up one dir, main page]

Skip to content

Commit c9fa287

Browse files
author
Barry Lind
committed
Applied patch from Oliver Jowett to better handle invalid input for getArray
(no longer throw an index out of range exception) Modified Files: jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java
1 parent 1f96440 commit c9fa287

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* Copyright (c) 2003, PostgreSQL Global Development Group
1010
*
1111
* IDENTIFICATION
12-
* $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/Attic/AbstractJdbc2ResultSet.java,v 1.20 2003/06/30 16:38:30 barry Exp $
12+
* $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/Attic/AbstractJdbc2ResultSet.java,v 1.21 2003/08/11 21:33:50 barry Exp $
1313
*
1414
*-------------------------------------------------------------------------
1515
*/
@@ -253,6 +253,8 @@ public java.sql.Array getArray(String colName) throws SQLException
253253

254254
public java.sql.Array getArray(int i) throws SQLException
255255
{
256+
checkResultSet( i );
257+
256258
wasNullFlag = (this_row[i - 1] == null);
257259
if (wasNullFlag)
258260
return null;

0 commit comments

Comments
 (0)
0