diff options
author | unknown <ramil/ram@mysql.com/ramil.myoffice.izhnet.ru> | 2006-12-21 13:53:34 +0400 |
---|---|---|
committer | unknown <ramil/ram@mysql.com/ramil.myoffice.izhnet.ru> | 2006-12-21 13:53:34 +0400 |
commit | 2f11f1d3a9b4138315d4f0bcf3e8725dbfb25e02 (patch) | |
tree | 1945856d27ead313a33083898b2e5fc0f98b6f65 /mysql-test/r/strict.result | |
parent | 6cf0571a97b9d9381c650b96e039c0c0aba955a5 (diff) | |
download | mariadb-git-2f11f1d3a9b4138315d4f0bcf3e8725dbfb25e02.tar.gz |
Fix for bug #22824: strict, datetime, NULL, wrong warning
During optimization we replace NULL with 0 for not null
date{time} fields, so uset MODE_NO_ZERO_DATE flag for a while
as we don't want to give extra warnings.
mysql-test/r/strict.result:
Fix for bug #22824: strict, datetime, NULL, wrong warning
- test result.
mysql-test/t/strict.test:
Fix for bug #22824: strict, datetime, NULL, wrong warning
- test case.
sql/item_cmpfunc.cc:
Fix for bug #22824: strict, datetime, NULL, wrong warning
- turn off MODE_NO_ZERO_DATE in order not to get extra warinings
in the save_in_field().
Diffstat (limited to 'mysql-test/r/strict.result')
-rw-r--r-- | mysql-test/r/strict.result | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mysql-test/r/strict.result b/mysql-test/r/strict.result index 702fc68bb25..4a85b5e483c 100644 --- a/mysql-test/r/strict.result +++ b/mysql-test/r/strict.result @@ -1352,3 +1352,10 @@ t1 CREATE TABLE `t1` ( `i` int(11) default NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='123456789*123456789*123456789*123456789*123456789*123456789*' drop table t1; +set @@sql_mode='NO_ZERO_DATE'; +create table t1(a datetime not null); +select count(*) from t1 where a is null; +count(*) +0 +drop table t1; +End of 5.0 tests |