提交 1a02949e authored 作者: Thomas Mueller's avatar Thomas Mueller

Test.

上级 40d5af8e
......@@ -99,7 +99,7 @@ ALTER TABLE tableName ALTER COLUMN columnName
Changes the data type of a column, rename a column,
change the identity value, or change the selectivity."
"Commands (DDL)","ALTER TABLE DROP COLUMN","
ALTER TABLE tableName DROP COLUMN columnName
ALTER TABLE tableName DROP COLUMN [ IF EXISTS ] columnName
","
Removes a column from a table."
"Commands (DDL)","ALTER TABLE DROP CONSTRAINT","
......@@ -190,10 +190,9 @@ Creates a new sequence."
"Commands (DDL)","CREATE TABLE","
CREATE [ CACHED | MEMORY ] [ TEMP | [ GLOBAL | LOCAL ] TEMPORARY ]
TABLE [ IF NOT EXISTS ] name
{ { ( { columnDefinition | constraint } [,...] ) [ AS select ] }
| { AS select } }
[ ( { columnDefinition | constraint } [,...] ) ]
[ ENGINE tableEngineName ] [ NOT PERSISTENT ] [ TRANSACTIONAL ]
","
[ AS select ]","
Creates a new table."
"Commands (DDL)","CREATE TRIGGER","
CREATE TRIGGER [ IF NOT EXISTS ] newTriggerName { BEFORE | AFTER | INSTEAD OF }
......
......@@ -339,7 +339,7 @@ java org.h2.test.TestAll timer
System.setProperty("h2.delayWrongPasswordMin", "0");
System.setProperty("h2.delayWrongPasswordMax", "0");
System.setProperty("h2.storeLocalTime", "true");
// System.setProperty("h2.storeLocalTime", "true");
// speedup
// System.setProperty("h2.syncMethod", "");
......@@ -760,6 +760,7 @@ kill -9 `jps -l | grep "org.h2.test." | cut -d " " -f 1`
StringUtils.javaEncode(prop.getProperty("line.separator")) + " " +
prop.getProperty("user.country") + " " +
prop.getProperty("user.language") + " " +
prop.getProperty("user.timezone") + " " +
prop.getProperty("user.variant")+" "+
prop.getProperty("file.encoding"));
}
......
......@@ -128,9 +128,6 @@ public class TestDateStorage extends TestBase {
}
private void testAllTimeZones() throws SQLException {
if (config.networked) {
return;
}
Connection conn = getConnection("date");
TimeZone defaultTimeZone = TimeZone.getDefault();
PreparedStatement prep = conn.prepareStatement("CALL CAST(? AS DATE)");
......@@ -169,14 +166,16 @@ public class TestDateStorage extends TestBase {
plus += 1000;
}
if (!date.toString().equals(s)) {
println(TimeZone.getDefault().getDisplayName() + " " + s + " <> " + date.toString());
println(TimeZone.getDefault().getID() + " " + s + " <> " + date.toString());
return;
}
prep.setString(1, s);
ResultSet rs = prep.executeQuery();
rs.next();
String t = rs.getString(1);
assertEquals(s, t);
if (!s.equals(t)) {
assertEquals(TimeZone.getDefault().getID(), s, t);
}
}
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论