mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 20:42:30 +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.
9 lines
232 B
Text
9 lines
232 B
Text
#
|
|
# MDEV-454 Addition of a time interval reduces the resulting value
|
|
#
|
|
create table t1 (d date);
|
|
insert into t1 values ('2012-00-00');
|
|
select * from t1;
|
|
update t1 set d = adddate(d, interval 1 day);
|
|
select * from t1;
|
|
drop table t1;
|