提交 d284f797 authored 作者: Owner's avatar Owner

Issue#458 Missed some testScript.sql test cases, added two more

上级 0a00594b
...@@ -9909,15 +9909,29 @@ select dateadd('year', -1, timestamp '2000-02-29 10:20:30.012345678') d1 from te ...@@ -9909,15 +9909,29 @@ select dateadd('year', -1, timestamp '2000-02-29 10:20:30.012345678') d1 from te
> 1999-02-28 10:20:30.012345678 > 1999-02-28 10:20:30.012345678
> rows: 1 > rows: 1
-- Only 2 months difference, not a whole year
select datediff('yy', timestamp '2003-12-01 10:20:30.0', timestamp '2004-01-01 10:00:00.0') d1 from test; select datediff('yy', timestamp '2003-12-01 10:20:30.0', timestamp '2004-01-01 10:00:00.0') d1 from test;
> D1 > D1
> -- > --
> 0
> rows: 1
select datediff('yy', timestamp '2003-12-01 10:20:30.0', timestamp '2004-12-01 10:20:30.0') d1 from test;
> D1
> --
> 1 > 1
> rows: 1 > rows: 1
-- Only 2 months difference, not a whole year
select datediff('year', timestamp '2003-12-01 10:20:30.0', timestamp '2004-01-01 10:00:00.0') d1 from test; select datediff('year', timestamp '2003-12-01 10:20:30.0', timestamp '2004-01-01 10:00:00.0') d1 from test;
> D1 > D1
> -- > --
> 0
> rows: 1
select datediff('year', timestamp '2003-12-01 10:20:30.0', timestamp '2004-12-01 10:20:30.0') d1 from test;
> D1
> --
> 1 > 1
> rows: 1 > rows: 1
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论