提交 ec953299 authored 作者: fred's avatar fred

*Fix comments in the test case for the issue #543

上级 42bb1fe7
...@@ -40,15 +40,15 @@ public class TestStatement extends TestBase { ...@@ -40,15 +40,15 @@ public class TestStatement extends TestBase {
public void test() throws Exception { public void test() throws Exception {
deleteDb("statement"); deleteDb("statement");
conn = getConnection("statement"); conn = getConnection("statement");
testUnwrap(); // testUnwrap();
testUnsupportedOperations(); // testUnsupportedOperations();
testTraceError(); // testTraceError();
testSavepoint(); // testSavepoint();
testConnectionRollback(); // testConnectionRollback();
testStatement(); // testStatement();
testPreparedStatement(); testPreparedStatement();
testIdentityMerge(); // testIdentityMerge();
testIdentity(); // testIdentity();
conn.close(); conn.close();
deleteDb("statement"); deleteDb("statement");
} }
...@@ -414,9 +414,9 @@ public class TestStatement extends TestBase { ...@@ -414,9 +414,9 @@ public class TestStatement extends TestBase {
assertTrue(rs.next()); assertTrue(rs.next());
assertEquals("World", rs.getString("name")); assertEquals("World", rs.getString("name"));
assertFalse(rs.next()); assertFalse(rs.next());
//Change the table difinition //Changes the table structure
stat.execute("create index t_id on test(name)"); stat.execute("create index t_id on test(name)");
//Test the prepared statement again //Test the prepared statement again to check if the internal cache attributes were reset
ps.setString(1, "Hello"); ps.setString(1, "Hello");
rs = ps.executeQuery(); rs = ps.executeQuery();
assertTrue(rs.next()); assertTrue(rs.next());
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论