• Sergey Glukhov's avatar
    Bug#12403504 AFTER FIX FOR #11889186 : ASSERTION FAILED: DELSUM+(INT) Y/4-TEMP > 0 · 3201f92c
    Sergey Glukhov authored
    There are two problems:
    1. There is a missing check for 'year' parameter(year can not be greater than 9999) in
       makedate function. fix: added check that year can not be greater than 9999.
    2. There is a missing check for zero date in from_days() function.
       fix: added zero date check into Item_func_from_days::get_date()
       function.
    
    
    mysql-test/r/func_time.result:
      test case
    mysql-test/t/func_time.test:
      test case
    sql/item_timefunc.cc:
      --added check that year can not be greater than 9999 for makedate() function
      --added zero date check into Item_func_from_days::get_date() function
    3201f92c
func_time.result 58 KB