diff options
author | Sergei Golubchik <sergii@pisem.net> | 2011-09-29 20:12:57 +0200 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2011-09-29 20:12:57 +0200 |
commit | 829b1747f9acc3dee0061b6bd4ebaeb38bd7f2f2 (patch) | |
tree | 9d17482559f0b4a0baf1eea0cf05d28a2eca3864 /mysql-test/t/cast.test | |
parent | af3a05dfbec291c256dc22aea6993822fa93af5e (diff) | |
download | mariadb-git-829b1747f9acc3dee0061b6bd4ebaeb38bd7f2f2.tar.gz |
make sure that cast(... as date) returns a valid date, as specified by the caller.
make Item::send() request a date according to the current SQL mode limitations.
Diffstat (limited to 'mysql-test/t/cast.test')
-rw-r--r-- | mysql-test/t/cast.test | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mysql-test/t/cast.test b/mysql-test/t/cast.test index b1e2d23b654..eeb87190ec1 100644 --- a/mysql-test/t/cast.test +++ b/mysql-test/t/cast.test @@ -407,3 +407,8 @@ insert into t1 values ('11:22:33','2011-12-13','2011-12-13 11:22:33'); select cast(f1 as unsigned), cast(f2 as unsigned), cast(f3 as unsigned) from t1; drop table t1; +# +# CAST(... AS DATE) and invalid dates +# +SELECT CAST(TIME('10:20:30') AS DATE) + INTERVAL 1 DAY; + |