提交 251063bc authored 作者: Thomas Mueller's avatar Thomas Mueller

Documentation / formatting

上级 3b75267b
...@@ -106,7 +106,7 @@ public class TestCases extends TestBase { ...@@ -106,7 +106,7 @@ public class TestCases extends TestBase {
testBinaryCollation(); testBinaryCollation();
deleteDb("cases"); deleteDb("cases");
} }
private void testAutoCommitInDatabaseURL() throws SQLException { private void testAutoCommitInDatabaseURL() throws SQLException {
Connection conn = getConnection("cases;autocommit=false"); Connection conn = getConnection("cases;autocommit=false");
assertFalse(conn.getAutoCommit()); assertFalse(conn.getAutoCommit());
......
...@@ -112,7 +112,7 @@ public class TestLob extends TestBase { ...@@ -112,7 +112,7 @@ public class TestLob extends TestBase {
deleteDb("lob"); deleteDb("lob");
FileUtils.deleteRecursive(TEMP_DIR, true); FileUtils.deleteRecursive(TEMP_DIR, true);
} }
private void testCloseLobTwice() throws SQLException { private void testCloseLobTwice() throws SQLException {
deleteDb("lob"); deleteDb("lob");
Connection conn = getConnection("lob"); Connection conn = getConnection("lob");
......
...@@ -42,7 +42,7 @@ public class TestMvcc3 extends TestBase { ...@@ -42,7 +42,7 @@ public class TestMvcc3 extends TestBase {
testRollback(); testRollback();
deleteDb("mvcc3"); deleteDb("mvcc3");
} }
private void testFailedUpdate() throws SQLException { private void testFailedUpdate() throws SQLException {
deleteDb("mvcc3"); deleteDb("mvcc3");
Connection conn = getConnection("mvcc3"); Connection conn = getConnection("mvcc3");
...@@ -51,7 +51,8 @@ public class TestMvcc3 extends TestBase { ...@@ -51,7 +51,8 @@ public class TestMvcc3 extends TestBase {
stat.execute("create table test(id int primary key, a int unique, b int)"); stat.execute("create table test(id int primary key, a int unique, b int)");
stat.execute("insert into test values(1, 1, 1)"); stat.execute("insert into test values(1, 1, 1)");
stat.execute("insert into test values(2, 2, 2)"); stat.execute("insert into test values(2, 2, 2)");
assertThrows(ErrorCode.DUPLICATE_KEY_1, stat).execute("update test set a = 1 where id = 2"); assertThrows(ErrorCode.DUPLICATE_KEY_1, stat).
execute("update test set a = 1 where id = 2");
ResultSet rs; ResultSet rs;
rs = stat.executeQuery("select * from test where id = 2"); rs = stat.executeQuery("select * from test where id = 2");
assertTrue(rs.next()); assertTrue(rs.next());
......
...@@ -755,4 +755,4 @@ predicted prediction wojtek hops jurczyk cbtree predict vast assumption upside ...@@ -755,4 +755,4 @@ predicted prediction wojtek hops jurczyk cbtree predict vast assumption upside
adjusted lastly sgtatham cleaning gillet prevented adjusted lastly sgtatham cleaning gillet prevented
angus bernd chatellier macdonald eckenfels granting moreover exponential transferring angus bernd chatellier macdonald eckenfels granting moreover exponential transferring
dedup megabyte breadth traversal affine tucc jentsch yyyymmdd vertica graf dedup megabyte breadth traversal affine tucc jentsch yyyymmdd vertica graf
mutate mutate shard shards
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论