mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +03:00 
			
		
		
		
	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
This commit is contained in:
		@@ -8,7 +8,7 @@ import java.util.Vector;
 | 
				
			|||||||
import org.postgresql.largeobject.*;
 | 
					import org.postgresql.largeobject.*;
 | 
				
			||||||
import org.postgresql.util.PSQLException;
 | 
					import org.postgresql.util.PSQLException;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/Attic/AbstractJdbc2Statement.java,v 1.7 2002/09/11 05:38:45 barry Exp $
 | 
					/* $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/Attic/AbstractJdbc2Statement.java,v 1.8 2002/10/30 04:33:29 barry Exp $
 | 
				
			||||||
 * This class defines methods of the jdbc2 specification.  This class extends
 | 
					 * This class defines methods of the jdbc2 specification.  This class extends
 | 
				
			||||||
 * org.postgresql.jdbc1.AbstractJdbc1Statement which provides the jdbc1
 | 
					 * org.postgresql.jdbc1.AbstractJdbc1Statement which provides the jdbc1
 | 
				
			||||||
 * methods.  The real Statement class (for jdbc2) is org.postgresql.jdbc2.Jdbc2Statement
 | 
					 * methods.  The real Statement class (for jdbc2) is org.postgresql.jdbc2.Jdbc2Statement
 | 
				
			||||||
@@ -115,8 +115,7 @@ public abstract class AbstractJdbc2Statement extends org.postgresql.jdbc1.Abstra
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
	public int getFetchSize() throws SQLException
 | 
						public int getFetchSize() throws SQLException
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		// This one can only return a valid value when were a cursor?
 | 
							return 0;
 | 
				
			||||||
		throw org.postgresql.Driver.notImplemented();
 | 
					 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	public int getResultSetConcurrency() throws SQLException
 | 
						public int getResultSetConcurrency() throws SQLException
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user