提交 12632db1 authored 作者: Thomas Mueller Graf's avatar Thomas Mueller Graf

TIMESTAMP WITH TIMEZONE: serialization for the PageStore was broken.

上级 0f4dde21
......@@ -77,6 +77,9 @@ changed from Types.OTHER (1111) to Types.TIMESTAMP_WITH_TIMEZONE (2014)
<li>File systems: the "cache:" file system, and the
compressed in-memory file systems memLZF and nioMemLZF did not
correctly support concurrent reading and writing.
</li>
<li>TIMESTAMP WITH TIMEZONE: serialization for the PageStore was broken.
</li>
</ul>
<h2>Version 1.4.193 Beta (2016-10-31)</h2>
......
......@@ -544,6 +544,7 @@ public class Data {
writeVarLong(ts.getDateValue());
writeVarLong(ts.getTimeNanos());
writeVarInt(ts.getTimeZoneOffsetMins());
break;
}
case Value.GEOMETRY:
// fall though
......
......@@ -41,6 +41,7 @@ import org.h2.value.ValueStringFixed;
import org.h2.value.ValueStringIgnoreCase;
import org.h2.value.ValueTime;
import org.h2.value.ValueTimestamp;
import org.h2.value.ValueTimestampTimeZone;
import org.h2.value.ValueUuid;
/**
......@@ -167,6 +168,7 @@ public class TestDataPage extends TestBase implements DataHandler {
testValue(ValueTime.get(new Time(0)));
testValue(ValueTimestamp.fromMillis(System.currentTimeMillis()));
testValue(ValueTimestamp.fromMillis(0));
testValue(ValueTimestampTimeZone.parse("2000-01-01 10:00:00"));
testValue(ValueJavaObject.getNoCopy(null, new byte[0], this));
testValue(ValueJavaObject.getNoCopy(null, new byte[100], this));
for (int i = 0; i < 300; i++) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论