Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc9fa287

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 parent1f96440 commitc9fa287

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
publicjava.sql.ArraygetArray(inti)throwsSQLException
255255
{
256+
checkResultSet(i );
257+
256258
wasNullFlag = (this_row[i -1] ==null);
257259
if (wasNullFlag)
258260
returnnull;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp