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

--no commit message

--no commit message
上级 272daa39
...@@ -272,12 +272,6 @@ java org.h2.test.TestAll timer ...@@ -272,12 +272,6 @@ java org.h2.test.TestAll timer
Improved compatibility with DB2: support for FETCH .. ROWS Improved compatibility with DB2: support for FETCH .. ROWS
drop all objects;
create domain email as varchar comment 'email';
create table test(e email);
select * from INFORMATION_SCHEMA.COLUMNS where table_name='TEST';
script nosettings;
Check Eclipse DTP, see also Check Eclipse DTP, see also
https://bugs.eclipse.org/bugs/show_bug.cgi?id=137701 https://bugs.eclipse.org/bugs/show_bug.cgi?id=137701
...@@ -427,126 +421,65 @@ http://www.w3schools.com/sql/ ...@@ -427,126 +421,65 @@ http://www.w3schools.com/sql/
* Run the tests with a number of different settings. * Run the tests with a number of different settings.
*/ */
private void runTests() throws Exception { private void runTests() throws Exception {
jdk14 = true;
smallLog = big = networked = memory = ssl = textStorage = diskResult = deleteIndex = traceSystemOut = diskUndo = false; smallLog = big = networked = memory = ssl = textStorage = false;
traceLevelFile = throttle = 0; diskResult = deleteIndex = traceSystemOut = diskUndo = false;
logMode = 1; mvcc = traceTest = stopOnError = cache2Q = false;
cipher = null;
test();
smallLog = big = networked = memory = ssl = textStorage = diskResult = deleteIndex = traceSystemOut = false;
traceLevelFile = throttle = 0; traceLevelFile = throttle = 0;
logMode = 1; logMode = 1;
cipher = null; cipher = null;
mvcc = false;
cache2Q = false;
test(); test();
diskUndo = false;
smallLog = false;
big = false;
networked = true; networked = true;
memory = true; memory = true;
ssl = false;
textStorage = true; textStorage = true;
diskResult = deleteIndex = traceSystemOut = false;
traceLevelFile = throttle = 0;
logMode = 1;
cipher = null;
mvcc = false;
cache2Q = false;
test(); test();
big = false;
smallLog = false;
networked = false; networked = false;
memory = false; memory = false;
ssl = false;
textStorage = false; textStorage = false;
diskResult = false;
deleteIndex = false;
traceSystemOut = false;
logMode = 2; logMode = 2;
traceLevelFile = 0;
throttle = 0;
cipher = null;
mvcc = false;
cache2Q = false;
test(); test();
logMode = 1;
diskUndo = true; diskUndo = true;
smallLog = false;
big = networked = memory = ssl = false;
textStorage = true; textStorage = true;
diskResult = true; diskResult = true;
deleteIndex = true; deleteIndex = true;
traceSystemOut = false;
logMode = 1;
traceLevelFile = 3; traceLevelFile = 3;
throttle = 1; throttle = 1;
cipher = "XTEA"; cipher = "XTEA";
mvcc = false;
cache2Q = false;
test(); test();
diskUndo = false; diskUndo = false;
big = true;
smallLog = false;
networked = false;
memory = false;
ssl = false;
textStorage = false; textStorage = false;
diskResult = false; diskResult = false;
deleteIndex = false; deleteIndex = false;
traceSystemOut = false;
logMode = 1;
traceLevelFile = 1; traceLevelFile = 1;
throttle = 0; throttle = 0;
cipher = null; cipher = null;
mvcc = false;
cache2Q = false;
test(); test();
traceLevelFile = 2;
big = true; big = true;
smallLog = true; smallLog = true;
networked = true; networked = true;
memory = false;
ssl = true; ssl = true;
textStorage = false;
diskResult = false;
deleteIndex = false;
traceSystemOut = false;
logMode = 2; logMode = 2;
traceLevelFile = 2;
throttle = 0;
cipher = null;
mvcc = false;
cache2Q = true;
test(); test();
big = true;
smallLog = false; smallLog = false;
networked = true;
memory = false;
ssl = false; ssl = false;
textStorage = false;
diskResult = false;
deleteIndex = false;
traceSystemOut = false;
logMode = 0; logMode = 0;
traceLevelFile = 0; traceLevelFile = 0;
throttle = 0;
cipher = "AES"; cipher = "AES";
mvcc = false;
cache2Q = false;
test(); test();
smallLog = big = networked = memory = ssl = textStorage = diskResult = deleteIndex = traceSystemOut = false; big = false;
traceLevelFile = throttle = 0; networked = false;
logMode = 1; logMode = 1;
cipher = null; cipher = null;
mvcc = true; mvcc = true;
cache2Q = false;
test(); test();
memory = true; memory = true;
...@@ -558,7 +491,7 @@ http://www.w3schools.com/sql/ ...@@ -558,7 +491,7 @@ http://www.w3schools.com/sql/
*/ */
private void test() throws Exception { private void test() throws Exception {
System.out.println(); System.out.println();
System.out.println("Test big:"+big+" net:"+networked+" cipher:"+cipher+" memory:"+memory+" log:"+logMode+" diskResult:"+diskResult + " mvcc:" + mvcc + " deleteIndex:" + deleteIndex); System.out.println("Test " + toString());
beforeTest(); beforeTest();
// db // db
...@@ -743,4 +676,37 @@ http://www.w3schools.com/sql/ ...@@ -743,4 +676,37 @@ http://www.w3schools.com/sql/
prop.getProperty("user.variant")+" "+ prop.getProperty("user.variant")+" "+
prop.getProperty("file.encoding")); prop.getProperty("file.encoding"));
} }
public String toString() {
StringBuffer buff = new StringBuffer();
appendIf(buff, big, "big");
appendIf(buff, networked, "net");
appendIf(buff, memory, "memory");
appendIf(buff, codeCoverage, "codeCoverage");
appendIf(buff, mvcc, "mvcc");
appendIf(buff, logMode != 1, "logMode:" + logMode);
appendIf(buff, cipher != null, cipher);
appendIf(buff, jdk14, "jdk14");
appendIf(buff, smallLog, "smallLog");
appendIf(buff, ssl, "ssl");
appendIf(buff, diskUndo, "diskUndo");
appendIf(buff, textStorage, "textStorage");
appendIf(buff, diskResult, "diskResult");
appendIf(buff, traceSystemOut, "traceSystemOut");
appendIf(buff, endless, "endless");
appendIf(buff, traceLevelFile > 0, "traceLevelFile");
appendIf(buff, throttle > 0, "throttle:" + throttle);
appendIf(buff, traceTest, "traceTest");
appendIf(buff, stopOnError, "stopOnError");
appendIf(buff, cache2Q, "cache2Q");
appendIf(buff, deleteIndex, "deleteIndex");
return buff.toString();
}
private void appendIf(StringBuffer buff, boolean flag, String text) {
if (flag) {
buff.append(text);
buff.append(' ');
}
}
} }
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论