• unknown's avatar
    Bug#30951: makedate returns different results depending on version of mysql · 773f9dcc
    unknown authored
    makedate() will fold years below 100 into the 1970-2069 range. CS removes code
    that also wrongly folded years between 100 and 200 into that range, which should
    be left unchanged. Backport from 5.1.
    
    
    mysql-test/r/func_sapdb.result:
      Show that makedate() works correctly for 100 <= year < 200.
    mysql-test/t/func_sapdb.test:
      Show that makedate() works correctly for 100 <= year < 200.
    sql-common/my_time.c:
      Remove unnecessary date magic. Syncs behaviour with 5.1+
      and manual.
    773f9dcc
my_time.c 37.4 KB