Connection conn = getConnection("transaction");
conn.setAutoCommit(false);
Statement stat = conn.createStatement();
stat.execute("create table test(id int primary key, name varchar)");
stat.execute("insert into test values(1, 'Hello'), (2, 'World')");
conn.commit();
PreparedStatement prep = conn.prepareStatement("select * from test for update");
prep.execute();
Connection conn2 = getConnection("transaction");
conn2.setAutoCommit(false);
assertThrows(ErrorCode.LOCK_TIMEOUT_1, conn2.createStatement()).