提交 2d6e9237 authored 作者: Thomas Mueller's avatar Thomas Mueller

More (strict) tests; the MVStore does not benefit from disabling the transaction log

上级 8c51fa44
...@@ -160,6 +160,8 @@ public class TestFullText extends TestBase { ...@@ -160,6 +160,8 @@ public class TestFullText extends TestBase {
conn = getConnection("fullTextNative", connList); conn = getConnection("fullTextNative", connList);
stat = conn.createStatement(); stat = conn.createStatement();
conn.setAutoCommit(false); conn.setAutoCommit(false);
rs = stat.executeQuery("SELECT * FROM FT_SEARCH_DATA('Welcome', 0, 0)");
assertTrue(rs.next());
stat.execute("delete from test"); stat.execute("delete from test");
rs = stat.executeQuery("SELECT * FROM FT_SEARCH_DATA('Welcome', 0, 0)"); rs = stat.executeQuery("SELECT * FROM FT_SEARCH_DATA('Welcome', 0, 0)");
assertFalse(rs.next()); assertFalse(rs.next());
......
...@@ -131,14 +131,10 @@ public class TestOpenClose extends TestBase implements DatabaseEventListener { ...@@ -131,14 +131,10 @@ public class TestOpenClose extends TestBase implements DatabaseEventListener {
+ "'", true); + "'", true);
Connection conn = DriverManager.getConnection(url, user, password); Connection conn = DriverManager.getConnection(url, user, password);
Statement stat = conn.createStatement(); Statement stat = conn.createStatement();
try { stat.execute("CREATE TABLE TEST(ID IDENTITY, NAME VARCHAR)");
stat.execute("CREATE TABLE TEST(ID IDENTITY, NAME VARCHAR)"); stat.execute("SET MAX_MEMORY_UNDO 100000");
stat.execute("SET MAX_MEMORY_UNDO 100000"); stat.execute("CREATE INDEX IDXNAME ON TEST(NAME)");
stat.execute("CREATE INDEX IDXNAME ON TEST(NAME)"); stat.execute("INSERT INTO TEST SELECT X, X || ' Data' FROM SYSTEM_RANGE(1, 1000)");
stat.execute("INSERT INTO TEST SELECT X, X || ' Data' FROM SYSTEM_RANGE(1, 1000)");
} catch (SQLException e) {
// ok
}
stat.close(); stat.close();
conn.close(); conn.close();
conn = DriverManager.getConnection(url, user, password); conn = DriverManager.getConnection(url, user, password);
...@@ -223,6 +219,8 @@ public class TestOpenClose extends TestBase implements DatabaseEventListener { ...@@ -223,6 +219,8 @@ public class TestOpenClose extends TestBase implements DatabaseEventListener {
throw new AssertionError("unexpected: " + stateName); throw new AssertionError("unexpected: " + stateName);
} }
break; break;
case STATE_STATEMENT_START:
break;
case STATE_CREATE_INDEX: case STATE_CREATE_INDEX:
stateName = "Create Index " + name + " " + current + "/" + max; stateName = "Create Index " + name + " " + current + "/" + max;
if (!"SYS:SYS_ID".equals(name)) { if (!"SYS:SYS_ID".equals(name)) {
......
...@@ -109,6 +109,9 @@ public class TestTransaction extends TestBase { ...@@ -109,6 +109,9 @@ public class TestTransaction extends TestBase {
if (config.memory) { if (config.memory) {
return; return;
} }
if (config.mvStore) {
return;
}
deleteDb("transaction"); deleteDb("transaction");
testLogMode(0); testLogMode(0);
testLogMode(1); testLogMode(1);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论