Skip to content

Commit c600374

Browse files
committed
Local temporary tables with many rows did not work correctly due to automatic analyze.
1 parent fa11a0d commit c600374

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

h2/src/test/org/h2/test/db/TestTempTables.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,9 @@ private void testAnalyzeReuseObjectId() throws SQLException {
5656
Connection conn = getConnection("tempTables");
5757
Statement stat = conn.createStatement();
5858
stat.execute("create local temporary table test(id identity)");
59-
PreparedStatement prep = conn.prepareStatement("insert into test values(null)");
60-
for(int i=0; i<10000; i++) {
59+
PreparedStatement prep = conn
60+
.prepareStatement("insert into test values(null)");
61+
for (int i = 0; i < 10000; i++) {
6162
prep.execute();
6263
}
6364
stat.execute("create local temporary table test2(id identity) as select x from system_range(1, 10)");

0 commit comments

Comments
 (0)