mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
test case for bug #614
This commit is contained in:
@ -329,6 +329,9 @@ insert into t1 values ('2001-01-12 12:23:40');
|
||||
select ctime, hour(ctime) from t1;
|
||||
ctime hour(ctime)
|
||||
2001-01-12 12:23:40 12
|
||||
select ctime from t1 where extract(MONTH FROM ctime) = 1 AND extract(YEAR FROM ctime) = 2001;
|
||||
ctime
|
||||
2001-01-12 12:23:40
|
||||
drop table t1;
|
||||
create table t1 (id int);
|
||||
create table t2 (id int, date date);
|
||||
|
@ -123,6 +123,8 @@ select extract(MONTH FROM "2001-02-00");
|
||||
create table t1 (ctime varchar(20));
|
||||
insert into t1 values ('2001-01-12 12:23:40');
|
||||
select ctime, hour(ctime) from t1;
|
||||
# test bug 614 (multiple extracts in where)
|
||||
select ctime from t1 where extract(MONTH FROM ctime) = 1 AND extract(YEAR FROM ctime) = 2001;
|
||||
drop table t1;
|
||||
|
||||
#
|
||||
|
Reference in New Issue
Block a user