提交 0e7a0ae9 authored 作者: Thomas Mueller's avatar Thomas Mueller

--no commit message

--no commit message
上级 262ec369
...@@ -41,7 +41,7 @@ public class TestOutOfMemory extends TestBase { ...@@ -41,7 +41,7 @@ public class TestOutOfMemory extends TestBase {
Statement stat = conn.createStatement(); Statement stat = conn.createStatement();
stat.execute("drop all objects"); stat.execute("drop all objects");
stat.execute("create table stuff (id int, text varchar as space(100) || id)"); stat.execute("create table stuff (id int, text varchar as space(100) || id)");
stat.execute("insert into stuff(id) select x from system_range(1, 2000)"); stat.execute("insert into stuff(id) select x from system_range(1, 3000)");
PreparedStatement prep = conn.prepareStatement("update stuff set text = text || ' upd'"); PreparedStatement prep = conn.prepareStatement("update stuff set text = text || ' upd'");
prep.execute(); prep.execute();
eatMemory(80); eatMemory(80);
...@@ -55,7 +55,7 @@ public class TestOutOfMemory extends TestBase { ...@@ -55,7 +55,7 @@ public class TestOutOfMemory extends TestBase {
freeMemory(); freeMemory();
ResultSet rs = stat.executeQuery("select count(*) from stuff"); ResultSet rs = stat.executeQuery("select count(*) from stuff");
rs.next(); rs.next();
assertEquals(2000, rs.getInt(1)); assertEquals(3000, rs.getInt(1));
} finally { } finally {
conn.close(); conn.close();
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论