diff options
author | Sergei Golubchik <sergii@pisem.net> | 2011-03-19 15:19:05 +0100 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2011-03-19 15:19:05 +0100 |
commit | 9daa6c6e722233f6af51a6590d25f730fa17ac06 (patch) | |
tree | 4e30a023265305872a37c50c511f9834bf3bf5de /mysql-test/t/func_time.test | |
parent | 8cda55a7dd779a2eaa19ddaa25f10d1c84faa6ba (diff) | |
download | mariadb-git-9daa6c6e722233f6af51a6590d25f730fa17ac06.tar.gz |
lp:738091 cast(timestamp() AS time returns NULL for 0000-00-00 00:00:00 in 5.1-micro
Diffstat (limited to 'mysql-test/t/func_time.test')
-rw-r--r-- | mysql-test/t/func_time.test | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/mysql-test/t/func_time.test b/mysql-test/t/func_time.test index 70451e98763..cf725893505 100644 --- a/mysql-test/t/func_time.test +++ b/mysql-test/t/func_time.test @@ -977,3 +977,12 @@ select day(coalesce(null)); # lp:738067 Crash in get_datetime_value() in 5.1-micro # select timestamp(greatest('2002-08-20', '0000-00-00 00:00:00')); + +# +# lp:738091 cast(timestamp() AS time returns NULL for 0000-00-00 00:00:00 in 5.1-micro +# +create table t1 (f1 datetime); +insert into t1 values ('0000-00-00 00:00:00'); +select cast(f1 AS time) from t1; +drop table t1; + |