mirror of
https://github.com/MariaDB/server.git
synced 2025-03-02 17:23:16 +01:00

fix Item_func_add_time::get_date() to generate valid dates. Move the validity check inside get_date_from_daynr() instead of relying on callers (5 that had it, and 2 that did not, but should've)
8 lines
160 B
Text
8 lines
160 B
Text
create table t1 (d datetime);
|
|
insert t1 values (addtime('9999-12-31 23:59:59', '00:00:01')),
|
|
(from_days(3652499));
|
|
select * from t1;
|
|
d
|
|
NULL
|
|
NULL
|
|
drop table t1;
|