提交 1c248676 authored 作者: Thomas Mueller's avatar Thomas Mueller 提交者: GitHub

Merge pull request #562 from andreitokar/issue#556

Issue#556 tst fix
...@@ -204,13 +204,16 @@ public class TestSynonymForTable extends TestBase { ...@@ -204,13 +204,16 @@ public class TestSynonymForTable extends TestBase {
* Make sure, that the schema changes are persisted when reopening the database * Make sure, that the schema changes are persisted when reopening the database
*/ */
private void testReopenDatabase() throws SQLException { private void testReopenDatabase() throws SQLException {
Connection conn = getConnection("synonym"); if(!config.memory) {
createTableWithSynonym(conn); deleteDb("synonym");
insertIntoBackingTable(conn, 9); Connection conn = getConnection("synonym");
conn.close(); createTableWithSynonym(conn);
Connection conn2 = getConnection("synonym"); insertIntoBackingTable(conn, 9);
assertSynonymContains(conn2, 9); conn.close();
conn2.close(); Connection conn2 = getConnection("synonym");
assertSynonymContains(conn2, 9);
conn2.close();
}
} }
private void testTruncateSynonym() throws SQLException { private void testTruncateSynonym() throws SQLException {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论