提交 c600374a authored 作者: Thomas Mueller Graf's avatar Thomas Mueller Graf

Local temporary tables with many rows did not work correctly due to automatic analyze.

上级 fa11a0dc
......@@ -56,8 +56,9 @@ public class TestTempTables extends TestBase {
Connection conn = getConnection("tempTables");
Statement stat = conn.createStatement();
stat.execute("create local temporary table test(id identity)");
PreparedStatement prep = conn.prepareStatement("insert into test values(null)");
for(int i=0; i<10000; i++) {
PreparedStatement prep = conn
.prepareStatement("insert into test values(null)");
for (int i = 0; i < 10000; i++) {
prep.execute();
}
stat.execute("create local temporary table test2(id identity) as select x from system_range(1, 10)");
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论