提交 6a4ffe98 authored 作者: Thomas Mueller's avatar Thomas Mueller

Formatting

上级 0d23b081
......@@ -483,7 +483,7 @@ kill -9 `jps -l | grep "org.h2.test." | cut -d " " -f 1`
prof.startCollecting();
TestPerformance.main("-init", "-db", "1", "-size", "1000");
prof.stopCollecting();
System.out.println(prof.getTop(30));
System.out.println(prof.getTop(5));
TestPerformance.main("-init", "-db", "1", "-size", "1000");
}
System.out.println(TestBase.formatTime(
......
......@@ -55,7 +55,7 @@ public class TestCompatibility extends TestBase {
conn.close();
deleteDb("compatibility");
}
private void testOnDuplicateKey() throws SQLException {
Connection c = getConnection("compatibility;MODE=MYSQL");
Statement stat = c.createStatement();
......@@ -63,11 +63,12 @@ public class TestCompatibility extends TestBase {
stat.execute("create schema s2");
stat.execute("create table s2.test(id int primary key, name varchar(255))");
stat.execute("insert into s2.test(id, name) values(1, 'a')");
stat.execute("insert into s2.test(id, name) values(1, 'b') on duplicate key update name = values(name)");
stat.execute("insert into s2.test(id, name) values(1, 'b') " +
"on duplicate key update name = values(name)");
stat.execute("drop schema s2");
c.close();
}
private void testKeyAsColumnInMySQLMode() throws SQLException {
Connection c = getConnection("compatibility;MODE=MYSQL");
Statement stat = c.createStatement();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论