4 public class LockTest extends PgpoolTest {
5 public final int COUNT = 100;
7 public void do_test() throws SQLException, IOException {
8 PreparedStatement pstmt = null;
12 for (int i = 0; i < COUNT; i++) {
13 connection.setAutoCommit(false);
15 stmt = connection.createStatement();
16 stmt.executeUpdate("LOCK locktest");
18 pstmt = connection.prepareStatement("SELECT * FROM locktest");
19 rs = pstmt.executeQuery();
21 logwriter.println(rs.getInt(1));
26 if (connection != null) {
33 public String getTestName() {