summaryrefslogtreecommitdiff
path: root/src/interfaces/jdbc/org/postgresql/test
diff options
context:
space:
mode:
Diffstat (limited to 'src/interfaces/jdbc/org/postgresql/test')
-rw-r--r--src/interfaces/jdbc/org/postgresql/test/jdbc2/BatchExecuteTest.java12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/interfaces/jdbc/org/postgresql/test/jdbc2/BatchExecuteTest.java b/src/interfaces/jdbc/org/postgresql/test/jdbc2/BatchExecuteTest.java
index 1c2569296be..e7f27ed575e 100644
--- a/src/interfaces/jdbc/org/postgresql/test/jdbc2/BatchExecuteTest.java
+++ b/src/interfaces/jdbc/org/postgresql/test/jdbc2/BatchExecuteTest.java
@@ -157,11 +157,19 @@ public class BatchExecuteTest extends TestCase
pstmt.executeBatch();
assertCol1HasValue(7);
- con.commit();
+ //now test to see that we can still use the statement after the execute
+ pstmt.setInt(1, 3);
+ pstmt.addBatch();
assertCol1HasValue(7);
+ pstmt.executeBatch();
+ assertCol1HasValue(10);
+
+ con.commit();
+ assertCol1HasValue(10);
+
con.rollback();
- assertCol1HasValue(7);
+ assertCol1HasValue(10);
pstmt.close();
}