]> granicus.if.org Git - postgresql/commitdiff
fixed problem where information from previous updates was leaking into subsequent...
authorDave Cramer <davec@fastcrypt.com>
Tue, 25 Mar 2003 01:57:03 +0000 (01:57 +0000)
committerDave Cramer <davec@fastcrypt.com>
Tue, 25 Mar 2003 01:57:03 +0000 (01:57 +0000)
src/interfaces/jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java

index 385486dbf7a306158675221c6b9037acfca34e79..9036c2c589f0021f1cb03de109750b72113d00bf 100644 (file)
@@ -15,7 +15,7 @@ import org.postgresql.util.PGbytea;
 import org.postgresql.util.PSQLException;
 
 
-/* $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/Attic/AbstractJdbc2ResultSet.java,v 1.10.2.3 2003/03/14 05:38:36 barry Exp $
+/* $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/Attic/AbstractJdbc2ResultSet.java,v 1.10.2.4 2003/03/25 01:57:03 davec Exp $
  * This class defines methods of the jdbc2 specification.  This class extends
  * org.postgresql.jdbc1.AbstractJdbc1ResultSet which provides the jdbc1
  * methods.  The real Statement class (for jdbc2) is org.postgresql.jdbc2.Jdbc2ResultSet
@@ -1071,7 +1071,8 @@ public abstract class AbstractJdbc2ResultSet extends org.postgresql.jdbc1.Abstra
                                rows.setElementAt( rowBuffer, current_row );
                                if ( Driver.logDebug )
                                        Driver.debug("done updates");
-
+                               // make sure next one doesn't see remnants of this one
+                               clearRowBuffer();
                                doingUpdates = false;
                        }
                        catch (Exception e)