1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

Fix for bug #23412: delete rows with null date field

Backport of the 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-10-27 18:08:50 +05:00
parent 8f118827c4
commit c6ee81f0ed
3 changed files with 31 additions and 1 deletions

View File

@@ -176,3 +176,14 @@ create table t1 (a int);
delete `4.t1` from t1 as `4.t1` where `4.t1`.a = 5;
delete FROM `4.t1` USING t1 as `4.t1` where `4.t1`.a = 5;
drop table t1;
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;
End of 4.1 tests