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

Move out some other tests from testScript.sql

上级 bfc577d3
...@@ -105,3 +105,27 @@ SELECT T0 FROM TEST; ...@@ -105,3 +105,27 @@ SELECT T0 FROM TEST;
DROP TABLE TEST; DROP TABLE TEST;
> ok > ok
create table test(id int, d timestamp);
> ok
insert into test values(1, '2006-01-01 12:00:00.000');
> update count: 1
insert into test values(1, '1999-12-01 23:59:00.000');
> update count: 1
select * from test where d= '1999-12-01 23:59:00.000';
> ID D
> -- -------------------
> 1 1999-12-01 23:59:00
> rows: 1
select * from test where d= timestamp '2006-01-01 12:00:00.000';
> ID D
> -- -------------------
> 1 2006-01-01 12:00:00
> rows: 1
drop table test;
> ok
...@@ -11,3 +11,14 @@ insert into test values(1, 'Hello'); ...@@ -11,3 +11,14 @@ insert into test values(1, 'Hello');
select week(date '2003-01-09') from test; select week(date '2003-01-09') from test;
>> 2 >> 2
drop table test;
> ok
-- ISO_WEEK
select iso_week('2006-12-31') w, iso_year('2007-12-31') y, iso_day_of_week('2007-12-31') w;
> W Y W
> -- ---- -
> 52 2008 1
> rows: 1
...@@ -833,12 +833,6 @@ delete from test where id = 1; ...@@ -833,12 +833,6 @@ delete from test where id = 1;
drop table test; drop table test;
> ok > ok
select iso_week('2006-12-31') w, iso_year('2007-12-31') y, iso_day_of_week('2007-12-31') w;
> W Y W
> -- ---- -
> 52 2008 1
> rows: 1
create schema a; create schema a;
> ok > ok
...@@ -2221,30 +2215,6 @@ select * from Foo where A like 'abc%' escape '\' AND B=1; ...@@ -2221,30 +2215,6 @@ select * from Foo where A like 'abc%' escape '\' AND B=1;
drop table Foo; drop table Foo;
> ok > ok
create table test(id int, d timestamp);
> ok
insert into test values(1, '2006-01-01 12:00:00.000');
> update count: 1
insert into test values(1, '1999-12-01 23:59:00.000');
> update count: 1
select * from test where d= '1999-12-01 23:59:00.000';
> ID D
> -- -------------------
> 1 1999-12-01 23:59:00
> rows: 1
select * from test where d= timestamp '2006-01-01 12:00:00.000';
> ID D
> -- -------------------
> 1 2006-01-01 12:00:00
> rows: 1
drop table test;
> ok
create table test(id int, b binary); create table test(id int, b binary);
> ok > ok
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论