1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

lp:737474 Wrong result with DAY(COALESCE(NULL)) in 5.1-micro

fix the return value of Item_func_coalesce::get_date()
This commit is contained in:
Sergei Golubchik
2011-03-18 19:29:52 +01:00
parent 5122e43a93
commit c629477981
3 changed files with 9 additions and 1 deletions

View File

@ -1533,3 +1533,6 @@ select least(greatest(f3, f2, f4), f5) from t1;
least(greatest(f3, f2, f4), f5)
0000-00-00 00:00:00
drop table t1;
select day(coalesce(null));
day(coalesce(null))
NULL