diff options
author | unknown <gshchepa/uchum@gleb.loc> | 2007-07-21 02:25:39 +0500 |
---|---|---|
committer | unknown <gshchepa/uchum@gleb.loc> | 2007-07-21 02:25:39 +0500 |
commit | d9bad2acc0fa78f77e2c05bd54a04063a26e71b2 (patch) | |
tree | b0ab67b6bfdb14f09b6d4b01f876f24a827986d0 /mysql-test/t/cast.test | |
parent | d3294a6051558535f8895a2b2f8512e0749a155c (diff) | |
parent | d758b1e629a78e1cf58c8a04da51e3c33630368c (diff) | |
download | mariadb-git-d9bad2acc0fa78f77e2c05bd54a04063a26e71b2.tar.gz |
Merge gleb.loc:/home/uchum/work/bk/5.0-opt
into gleb.loc:/home/uchum/work/bk/5.1-opt
mysql-test/r/cast.result:
Auto merged
mysql-test/t/cast.test:
Auto merged
sql/item_timefunc.cc:
Auto merged
Diffstat (limited to 'mysql-test/t/cast.test')
-rw-r--r-- | mysql-test/t/cast.test | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/mysql-test/t/cast.test b/mysql-test/t/cast.test index ab2859a5346..5563e260a06 100644 --- a/mysql-test/t/cast.test +++ b/mysql-test/t/cast.test @@ -237,4 +237,13 @@ select hex(cast('a' as char(2) binary)); select hex(cast('a' as binary(2))); select hex(cast('a' as char(2) binary)); +# +# Bug#29898: Item_date_typecast::val_int doesn't reset the null_value flag. +# +CREATE TABLE t1 (d1 datetime); +INSERT INTO t1(d1) VALUES ('2007-07-19 08:30:00'), (NULL), + ('2007-07-19 08:34:00'), (NULL), ('2007-07-19 08:36:00'); +SELECT cast(date(d1) as signed) FROM t1; +drop table t1; + --echo End of 5.0 tests |