Unverified 提交 c790224e authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov 提交者: GitHub

Merge pull request #964 from katzyn/datetime

Fix TestFunctions.testToCharFromDateTime()
...@@ -1441,10 +1441,10 @@ public class TestFunctions extends TestBase implements AggregateFunction { ...@@ -1441,10 +1441,10 @@ public class TestFunctions extends TestBase implements AggregateFunction {
Statement stat = conn.createStatement(); Statement stat = conn.createStatement();
TimeZone tz = TimeZone.getDefault(); TimeZone tz = TimeZone.getDefault();
boolean daylight = tz.inDaylightTime(new Date()); final Timestamp timestamp1979 = Timestamp.valueOf("1979-11-12 08:12:34.560");
boolean daylight = tz.inDaylightTime(timestamp1979);
String tzShortName = tz.getDisplayName(daylight, TimeZone.SHORT); String tzShortName = tz.getDisplayName(daylight, TimeZone.SHORT);
String tzLongName = tz.getID(); String tzLongName = tz.getID();
final Timestamp timestamp1979 = Timestamp.valueOf("1979-11-12 08:12:34.560");
stat.executeUpdate("CREATE TABLE T (X TIMESTAMP(6))"); stat.executeUpdate("CREATE TABLE T (X TIMESTAMP(6))");
stat.executeUpdate("INSERT INTO T VALUES " + stat.executeUpdate("INSERT INTO T VALUES " +
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论