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

Commit11e9dcc

Browse files
author
Barry Lind
committed
Applied patch from kho@redhat.com to fix a problem with trying to use a fetch
when a cursor wasn't being used. Modified Files: jdbc/org/postgresql/jdbc1/AbstractJdbc1ResultSet.java
1 parent149f01c commit11e9dcc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

‎src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1ResultSet.java

Lines changed: 5 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/jdbc1/Attic/AbstractJdbc1ResultSet.java,v 1.13 2003/06/30 21:10:55 davec Exp $
12+
* $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc1/Attic/AbstractJdbc1ResultSet.java,v 1.14 2003/08/06 05:53:13 barry Exp $
1313
*
1414
*-------------------------------------------------------------------------
1515
*/
@@ -131,6 +131,10 @@ public boolean next() throws SQLException
131131
String[]binds =newString[0];
132132
// Is this the correct query???
133133
StringcursorName =statement.getStatementName();
134+
//if cursorName is null, we are not batching (likely because the
135+
//query itself can't be batched)
136+
if (cursorName ==null)
137+
returnfalse;
134138
sql[0] ="FETCH FORWARD " +fetchSize +" FROM " +cursorName;
135139
QueryExecutor.execute(sql,
136140
binds,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp