5 public class AutoCommitTest extends PgpoolTest{
6 public String sql = "select * from autocommit where a = ?";
8 public static void main(String[] args) throws SQLException {
9 AutoCommitTest test = new AutoCommitTest();
13 public void do_test() throws SQLException
15 connection.setAutoCommit(true);
17 PreparedStatement stmt = null;
21 for(int i = 0; i < 10; i++) {
22 stmt = connection.prepareStatement(sql);
24 stmt.setInt(1, i + 1);
25 rs = stmt.executeQuery();
28 logwriter.print(rs.getInt(1) + " ");
32 if(rs != null) rs.close();
33 if(stmt != null) stmt.close();
42 public String getTestName() {