diff options
author | unknown <evgen@moonbone.local> | 2007-07-20 22:05:20 +0400 |
---|---|---|
committer | unknown <evgen@moonbone.local> | 2007-07-20 22:05:20 +0400 |
commit | d758b1e629a78e1cf58c8a04da51e3c33630368c (patch) | |
tree | 24c39cc281f4e341c192a3b48f8669e29940029d /mysql-test/r | |
parent | db31d3c96d398930dbeb0cedfb86aaa2bd558144 (diff) | |
parent | a131428f041cd015662240bde255d159bcc53af7 (diff) | |
download | mariadb-git-d758b1e629a78e1cf58c8a04da51e3c33630368c.tar.gz |
Merge epotemkin@bk-internal.mysql.com:/home/bk/mysql-5.0-opt
into moonbone.local:/mnt/gentoo64/work/29898-bug-5.0-opt-mysql
Diffstat (limited to 'mysql-test/r')
-rw-r--r-- | mysql-test/r/cast.result | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/mysql-test/r/cast.result b/mysql-test/r/cast.result index 6eceeff87e2..524ff48d69e 100644 --- a/mysql-test/r/cast.result +++ b/mysql-test/r/cast.result @@ -403,4 +403,15 @@ hex(cast('a' as binary(2))) select hex(cast('a' as char(2) binary)); hex(cast('a' as char(2) binary)) 61 +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; +cast(date(d1) as signed) +20070719 +NULL +20070719 +NULL +20070719 +drop table t1; End of 5.0 tests |