1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Fix for bug #8143: A date with value 0 is treated as a NULL value

This commit is contained in:
ramil/ram@mysql.com/myoffice.izhnet.ru
2006-07-23 15:25:30 +05:00
parent d5b41988cd
commit 1c04310e30
3 changed files with 29 additions and 0 deletions

View File

@ -192,3 +192,13 @@ delete t2.*,t3.* from t1,t2,t3 where t1.a=t2.a AND t2.b=t3.a and t1.b=t3.b;
select * from t3;
a b
drop table t1,t2,t3;
create table t1(a date not null);
insert into t1 values (0);
select * from t1 where a is null;
a
0000-00-00
delete from t1 where a is null;
select count(*) from t1;
count(*)
0
drop table t1;