mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 20:42:30 +01:00
Add test for str_to_time
This commit is contained in:
parent
768457911c
commit
bf0557cc73
2 changed files with 9 additions and 0 deletions
|
@ -184,3 +184,5 @@ extract(MINUTE_SECOND FROM "10:11:12")
|
|||
1112
|
||||
extract(SECOND FROM "1999-01-02 10:11:12")
|
||||
12
|
||||
ctime hour(ctime)
|
||||
2001-01-12 12:23:40 12
|
||||
|
|
|
@ -98,3 +98,10 @@ select extract(HOUR_SECOND FROM "10:11:12");
|
|||
select extract(MINUTE FROM "10:11:12");
|
||||
select extract(MINUTE_SECOND FROM "10:11:12");
|
||||
select extract(SECOND FROM "1999-01-02 10:11:12");
|
||||
|
||||
drop table if exists t1;
|
||||
create table t1 (ctime varchar(20));
|
||||
insert into t1 values ('2001-01-12 12:23:40');
|
||||
select ctime, hour(ctime) from t1;
|
||||
drop table t1;
|
||||
|
||||
|
|
Loading…
Reference in a new issue