提交 4d1e5e1e authored 作者: Thomas Mueller's avatar Thomas Mueller

Formatting, code conventions

上级 508b1a2e
...@@ -380,6 +380,9 @@ java org.h2.test.TestAll timer ...@@ -380,6 +380,9 @@ java org.h2.test.TestAll timer
*/ */
AbbaLockingDetector abbaLockingDetector; AbbaLockingDetector abbaLockingDetector;
/**
* The list of tests.
*/
ArrayList<TestBase> tests = New.arrayList(); ArrayList<TestBase> tests = New.arrayList();
private Server server; private Server server;
......
...@@ -150,8 +150,10 @@ public class TestCases extends TestBase { ...@@ -150,8 +150,10 @@ public class TestCases extends TestBase {
stat.execute("create table parent(id int primary key)"); stat.execute("create table parent(id int primary key)");
stat.execute("create table child(id int, parent_id int, x int)"); stat.execute("create table child(id int, parent_id int, x int)");
stat.execute("create index y on child(parent_id, x)"); stat.execute("create index y on child(parent_id, x)");
stat.execute("alter table child add constraint z foreign key(parent_id) references parent(id)"); stat.execute("alter table child add constraint z " +
ResultSet rs = stat.executeQuery("select * from information_schema.indexes where table_name = 'CHILD'"); "foreign key(parent_id) references parent(id)");
ResultSet rs = stat.executeQuery(
"select * from information_schema.indexes where table_name = 'CHILD'");
while (rs.next()) { while (rs.next()) {
assertEquals("Y", rs.getString("index_name")); assertEquals("Y", rs.getString("index_name"));
} }
......
...@@ -202,7 +202,8 @@ public class TestWeb extends TestBase { ...@@ -202,7 +202,8 @@ public class TestWeb extends TestBase {
assertTrue(FileUtils.exists(getBaseDir() + "/" + getTestName() + ".h2.sql")); assertTrue(FileUtils.exists(getBaseDir() + "/" + getTestName() + ".h2.sql"));
FileUtils.delete(getBaseDir() + "/web.h2.sql"); FileUtils.delete(getBaseDir() + "/web.h2.sql");
result = client.get(url, "tools.do?tool=RunScript&args=-script," + result = client.get(url, "tools.do?tool=RunScript&args=-script," +
getBaseDir() + "/" + getTestName() + ".h2.sql,-url," + getURL(getTestName(), true) + getBaseDir() + "/" + getTestName() + ".h2.sql,-url," +
getURL(getTestName(), true) +
",-user," + getUser() + ",-password," + getPassword()); ",-user," + getUser() + ",-password," + getPassword());
FileUtils.delete(getBaseDir() + "/" + getTestName() + ".h2.sql"); FileUtils.delete(getBaseDir() + "/" + getTestName() + ".h2.sql");
assertTrue(FileUtils.exists(fn)); assertTrue(FileUtils.exists(fn));
......
...@@ -771,3 +771,4 @@ young sweep clearer accounting disappeared donor oome ken jorissen nesterov ...@@ -771,3 +771,4 @@ young sweep clearer accounting disappeared donor oome ken jorissen nesterov
degradation failures fashion disjunctive mentioned conjunctive misses broke degradation failures fashion disjunctive mentioned conjunctive misses broke
authenticate orphaned registrations topology planner authenticate orphaned registrations topology planner
zepfred frederico thimel arnaud manipulating strongly lots aquiles younger needing zepfred frederico thimel arnaud manipulating strongly lots aquiles younger needing
unrecognized five omitting registering
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论