diff options
author | ramil/ram@mysql.com/myoffice.izhnet.ru <> | 2006-12-04 17:06:25 +0400 |
---|---|---|
committer | ramil/ram@mysql.com/myoffice.izhnet.ru <> | 2006-12-04 17:06:25 +0400 |
commit | c99556d5d44cf28524e442ed13e520fef901e017 (patch) | |
tree | 3e658877ab80c379c8ea6e5684dd70fee52186a4 /mysql-test/t/cast.test | |
parent | c2aca91b7fde5a2127e6187dbefd6ad89df45d21 (diff) | |
download | mariadb-git-c99556d5d44cf28524e442ed13e520fef901e017.tar.gz |
fix for bug #23938: ISNULL on DATE AND CAST AS DATE returns false for null values
Set null_value in case of wrong data.
Diffstat (limited to 'mysql-test/t/cast.test')
-rw-r--r-- | mysql-test/t/cast.test | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/mysql-test/t/cast.test b/mysql-test/t/cast.test index b214cef10fa..7e8ef031e6b 100644 --- a/mysql-test/t/cast.test +++ b/mysql-test/t/cast.test @@ -167,4 +167,10 @@ INSERT INTO t1 SET f1 = +1.0e+30 ; SELECT f1 AS double_val, CAST(f1 AS SIGNED INT) AS cast_val FROM t1; DROP TABLE t1; -# End of 4.1 tests +# +# Bug #23938: cast(NULL as DATE) +# + +select isnull(date(NULL)), isnull(cast(NULL as DATE)); + +--echo End of 4.1 tests |