提交 5db12c5a authored 作者: Noel Grandin's avatar Noel Grandin

fix unit test failure caused by removal of TIMESTAMP UTC

上级 b3df861d
...@@ -76,6 +76,11 @@ public class TestValueMemory extends TestBase implements DataHandler { ...@@ -76,6 +76,11 @@ public class TestValueMemory extends TestBase implements DataHandler {
public void test() throws SQLException { public void test() throws SQLException {
testCompare(); testCompare();
for (int i = 0; i < Value.TYPE_COUNT; i++) { for (int i = 0; i < Value.TYPE_COUNT; i++) {
if (i == 23) {
// this used to be "TIMESTAMP UTC", which was a short-lived
// experiment
continue;
}
Value v = create(i); Value v = create(i);
String s = "type: " + v.getType() + String s = "type: " + v.getType() +
" calculated: " + v.getMemory() + " calculated: " + v.getMemory() +
...@@ -84,6 +89,11 @@ public class TestValueMemory extends TestBase implements DataHandler { ...@@ -84,6 +89,11 @@ public class TestValueMemory extends TestBase implements DataHandler {
trace(s); trace(s);
} }
for (int i = 0; i < Value.TYPE_COUNT; i++) { for (int i = 0; i < Value.TYPE_COUNT; i++) {
if (i == 23) {
// this used to be "TIMESTAMP UTC", which was a short-lived
// experiment
continue;
}
Value v = create(i); Value v = create(i);
if (v == ValueNull.INSTANCE && i == Value.GEOMETRY) { if (v == ValueNull.INSTANCE && i == Value.GEOMETRY) {
// jts not in the classpath, OK // jts not in the classpath, OK
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论