提交 ca5a3593 authored 作者: tledkov's avatar tledkov

#1057, #1072 fix compilation

上级 61bdafce
...@@ -7,7 +7,6 @@ package org.h2.test.unit; ...@@ -7,7 +7,6 @@ package org.h2.test.unit;
import org.h2.command.dml.SetTypes; import org.h2.command.dml.SetTypes;
import org.h2.test.TestBase; import org.h2.test.TestBase;
import org.junit.Assert;
import java.sql.Connection; import java.sql.Connection;
import java.sql.DriverManager; import java.sql.DriverManager;
...@@ -60,7 +59,7 @@ public class TestSubqueryPerformanceOnLazyExecutionMode extends TestBase { ...@@ -60,7 +59,7 @@ public class TestSubqueryPerformanceOnLazyExecutionMode extends TestBase {
long tNotLazy = executeAndCheckResult(stmt, sql, false); long tNotLazy = executeAndCheckResult(stmt, sql, false);
long tLazy = executeAndCheckResult(stmt, sql, true); long tLazy = executeAndCheckResult(stmt, sql, true);
Assert.assertTrue("Lazy execution too slow. lazy time: " assertTrue("Lazy execution too slow. lazy time: "
+ tLazy + ", not lazy time: " + tNotLazy, + tLazy + ", not lazy time: " + tNotLazy,
tNotLazy * 2 > tLazy); tNotLazy * 2 > tLazy);
} }
...@@ -73,7 +72,7 @@ public class TestSubqueryPerformanceOnLazyExecutionMode extends TestBase { ...@@ -73,7 +72,7 @@ public class TestSubqueryPerformanceOnLazyExecutionMode extends TestBase {
long tNotLazy = executeAndCheckResult(stmt, sql, false); long tNotLazy = executeAndCheckResult(stmt, sql, false);
long tLazy = executeAndCheckResult(stmt, sql, true); long tLazy = executeAndCheckResult(stmt, sql, true);
Assert.assertTrue("Lazy execution too slow. lazy time: " assertTrue("Lazy execution too slow. lazy time: "
+ tLazy + ", not lazy time: " + tNotLazy, + tLazy + ", not lazy time: " + tNotLazy,
tNotLazy * 2 > tLazy); tNotLazy * 2 > tLazy);
} }
...@@ -92,7 +91,7 @@ public class TestSubqueryPerformanceOnLazyExecutionMode extends TestBase { ...@@ -92,7 +91,7 @@ public class TestSubqueryPerformanceOnLazyExecutionMode extends TestBase {
long t0 = System.currentTimeMillis(); long t0 = System.currentTimeMillis();
try (ResultSet rs = stmt.executeQuery(sql)) { try (ResultSet rs = stmt.executeQuery(sql)) {
rs.next(); rs.next();
Assert.assertEquals(ROWS, rs.getInt(1)); assertEquals(ROWS, rs.getInt(1));
} }
return System.currentTimeMillis() - t0; return System.currentTimeMillis() - t0;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论