Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a50d08f

Browse files
author
Barry Lind
committed
Return something meaningful for Statement.getFetchSize(). Previously we were
returning an exception when this method was called. Modified Files: jdbc/org/postgresql/jdbc2/AbstractJdbc2Statement.java
1 parent faf2853 commit a50d08f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import org.postgresql.largeobject.*;
99
import org.postgresql.util.PSQLException;
1010

11-
/* $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/Attic/AbstractJdbc2Statement.java,v 1.7 2002/09/11 05:38:45 barry Exp $
11+
/* $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/Attic/AbstractJdbc2Statement.java,v 1.8 2002/10/30 04:33:29 barry Exp $
1212
* This class defines methods of the jdbc2 specification. This class extends
1313
* org.postgresql.jdbc1.AbstractJdbc1Statement which provides the jdbc1
1414
* methods. The real Statement class (for jdbc2) is org.postgresql.jdbc2.Jdbc2Statement
@@ -115,8 +115,7 @@ public int getFetchDirection() throws SQLException
115115

116116
public int getFetchSize() throws SQLException
117117
{
118-
// This one can only return a valid value when were a cursor?
119-
throw org.postgresql.Driver.notImplemented();
118+
return 0;
120119
}
121120

122121
public int getResultSetConcurrency() throws SQLException

0 commit comments

Comments
 (0)