3 public class InsertTest extends PgpoolTest {
4 public void do_test() throws SQLException {
9 PreparedStatement pstmt = null;
10 Statement stmt = null;
12 for (int i = 0; i < N; i++) {
13 connection.setAutoCommit(false);
14 pstmt = connection.prepareStatement("INSERT INTO ins VALUES (?)");
16 pstmt.executeUpdate();
20 connection.setAutoCommit(true);
21 stmt = connection.createStatement();
22 rs = stmt.executeQuery("SELECT count(a) FROM ins" );
24 logwriter.println(rs.getInt(1));
31 public String getTestName() {