提交 d1e64d7e authored 作者: Thomas Mueller's avatar Thomas Mueller

Automatically converted to the new page store format

上级 eec75255
...@@ -36,6 +36,7 @@ public class TestPageStore extends TestBase implements DatabaseEventListener { ...@@ -36,6 +36,7 @@ public class TestPageStore extends TestBase implements DatabaseEventListener {
} }
public void test() throws Exception { public void test() throws Exception {
testAutoConvert();
testLargeDatabaseFastOpen(); testLargeDatabaseFastOpen();
testUniqueIndexReopen(); testUniqueIndexReopen();
testExistingOld(); testExistingOld();
...@@ -50,6 +51,33 @@ public class TestPageStore extends TestBase implements DatabaseEventListener { ...@@ -50,6 +51,33 @@ public class TestPageStore extends TestBase implements DatabaseEventListener {
testFuzzOperations(); testFuzzOperations();
} }
private void testAutoConvert() throws SQLException {
if (config.memory) {
return;
}
deleteDb("pageStore");
Connection conn;
conn = getConnection("pageStore;PAGE_STORE=FALSE");
conn.createStatement().execute("create table test(id int, data clob)");
conn.createStatement().execute("insert into test select x, space(10000) from system_range(1, 2)");
conn.createStatement().execute("shutdown immediately");
try {
conn.close();
} catch (SQLException e) {
// ignore
}
try {
getConnection("pageStore;PAGE_STORE=TRUE");
fail();
} catch (SQLException e) {
assertKnownException(e);
}
conn = getConnection("pageStore");
conn.close();
conn = getConnection("pageStore;PAGE_STORE=TRUE");
conn.close();
}
private void testLargeDatabaseFastOpen() throws SQLException { private void testLargeDatabaseFastOpen() throws SQLException {
if (config.memory) { if (config.memory) {
return; return;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论