提交 7a9be06c authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov

Read nanoseconds of timestamps from old H2 versions properly

上级 006599c8
...@@ -738,7 +738,7 @@ public class Data { ...@@ -738,7 +738,7 @@ public class Data {
case Value.TIMESTAMP: { case Value.TIMESTAMP: {
return ValueTimestamp.fromMillisNanos( return ValueTimestamp.fromMillisNanos(
DateTimeUtils.getTimeUTCWithoutDst(readVarLong()), DateTimeUtils.getTimeUTCWithoutDst(readVarLong()),
readVarInt()); readVarInt() % 1_000_000);
} }
case Value.TIMESTAMP_TZ: { case Value.TIMESTAMP_TZ: {
long dateValue = readVarLong(); long dateValue = readVarLong();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论