提交 93430bf7 authored 作者: Thomas Mueller's avatar Thomas Mueller

Support the data type "DATETIME2" as an alias for "DATETIME", for MS SQL Server compatibility.

上级 dc6bc972
...@@ -45,7 +45,7 @@ Change Log ...@@ -45,7 +45,7 @@ Change Log
</li></ul> </li></ul>
<h2>Next Version (unreleased)</h2> <h2>Next Version (unreleased)</h2>
<ul><li>- <ul><li>Support the data type "DATETIME2" as an alias for "DATETIME", for MS SQL Server compatibility.
</li></ul> </li></ul>
<h2>Version 1.3.176 (2014-04-05)</h2> <h2>Version 1.3.176 (2014-04-05)</h2>
......
...@@ -311,7 +311,7 @@ public class DataType { ...@@ -311,7 +311,7 @@ public class DataType {
add(Value.TIMESTAMP, Types.TIMESTAMP, "Timestamp", add(Value.TIMESTAMP, Types.TIMESTAMP, "Timestamp",
createDate(ValueTimestamp.PRECISION, "TIMESTAMP", createDate(ValueTimestamp.PRECISION, "TIMESTAMP",
ValueTimestamp.DEFAULT_SCALE, ValueTimestamp.DISPLAY_SIZE), ValueTimestamp.DEFAULT_SCALE, ValueTimestamp.DISPLAY_SIZE),
new String[]{"TIMESTAMP", "DATETIME", "SMALLDATETIME"}, new String[]{"TIMESTAMP", "DATETIME", "DATETIME2", "SMALLDATETIME"},
// 24 for ValueTimestamp, 32 for java.sql.Timestamp // 24 for ValueTimestamp, 32 for java.sql.Timestamp
56 56
); );
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论