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

Set DataType.params for date-time and interval data types

上级 bf368749
......@@ -367,6 +367,9 @@ public class DataType {
dataType.supportsScale = true;
dataType.defaultScale = ValueInterval.DEFAULT_SCALE;
dataType.maxScale = ValueInterval.MAXIMUM_SCALE;
dataType.params = "PRECISION,SCALE";
} else {
dataType.params = "PRECISION";
}
add(type, Types.OTHER, dataType,
new String[]{("INTERVAL " + name).intern()}
......@@ -462,10 +465,13 @@ public class DataType {
dataType.prefix = prefix + " '";
dataType.suffix = "'";
dataType.maxPrecision = maxPrecision;
dataType.supportsScale = supportsScale;
dataType.maxScale = maxScale;
dataType.defaultPrecision = precision;
if (supportsScale) {
dataType.params = "SCALE";
dataType.supportsScale = true;
dataType.maxScale = maxScale;
dataType.defaultScale = scale;
}
return dataType;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论