println("Positive Statement: add 3 statements, clear batch, " +
"add 3 more statements and execute batch");
stmt.addBatch("insert into t1 values(2)");
stmt.addBatch("insert into t1 values(2)");
stmt.addBatch("insert into t1 values(2)");
stmt.clearBatch();
stmt.addBatch("insert into t1 values(2)");
stmt.addBatch("insert into t1 values(2)");
stmt.addBatch("insert into t1 values(2)");
assertBatchUpdateCounts(new int[] {1,1,1}, stmt.executeBatch());