提交 b4bd7750 authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov

Remove broken support for non-standard TIMESTAMP WITH TIMEZONE

上级 2e51a894
......@@ -9,7 +9,7 @@ import java.io.Serializable;
import org.h2.util.DateTimeUtils;
/**
* How we expose "TIMESTAMP WITH TIMEZONE" in our ResultSets.
* How we expose "TIMESTAMP WITH TIME ZONE" in our ResultSets.
*/
public class TimestampWithTimeZone implements Serializable, Cloneable {
......
......@@ -4342,16 +4342,9 @@ public class Parser {
}
} else if (readIf("TIMESTAMP")) {
if (readIf("WITH")) {
// originally we used TIMEZONE, which turns out not to be
// standards-compliant, but lets keep backwards compatibility
if (readIf("TIMEZONE")) {
read("TIMEZONE");
original += " WITH TIMEZONE";
} else {
read("TIME");
read("ZONE");
original += " WITH TIME ZONE";
}
} else if (readIf("WITHOUT")) {
read("TIME");
read("ZONE");
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论