Thread: pgsql-server/src/interfaces/jdbc/org/postgresq ...

pgsql-server/src/interfaces/jdbc/org/postgresq ...

From
barry@postgresql.org (Barry Lind)
Date:
CVSROOT:    /cvsroot
Module name:    pgsql-server
Changes by:    barry@postgresql.org    02/11/20 02:34:32

Modified files:
    src/interfaces/jdbc/org/postgresql/jdbc1:
                                              AbstractJdbc1Statement.java
    src/interfaces/jdbc/org/postgresql/jdbc2:
                                              AbstractJdbc2Statement.java
    src/interfaces/jdbc/org/postgresql/test/jdbc2:
                                                   BatchExecuteTest.java

Log message:
    Fixed bug reported by Marko Strukelj and Keith Wannamaker.  Using executeBatch
    on a preparedStatement would reset the prepared statment causing subsequent
    uses of the preparedStatement to fail (i.e. the following series of calls
    would fail: addBatch() executeBatch() addBatch() executBatch()).  This is
    a regression from 7.2 where this worked correctly.  The regression test has
    also been modified to explicitly test for this case.

    Modified Files:
    jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java
    jdbc/org/postgresql/jdbc2/AbstractJdbc2Statement.java
    jdbc/org/postgresql/test/jdbc2/BatchExecuteTest.java