mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 04:53:01 +01:00
3444e8e925
1. Field_newdate::get_date should refuse to return a date with zeros when TIME_NO_ZERO_IN_DATE is set, not when TIME_FUZZY_DATE is unset 2. Item_func_to_days and Item_date_add_interval can only work with valid dates, no zeros allowed.
10 lines
181 B
Text
10 lines
181 B
Text
create table t1 (d date);
|
|
insert into t1 values ('2012-00-00');
|
|
select * from t1;
|
|
d
|
|
2012-00-00
|
|
update t1 set d = adddate(d, interval 1 day);
|
|
select * from t1;
|
|
d
|
|
NULL
|
|
drop table t1;
|