• unknown's avatar
    Bug#32770: LAST_DAY() returns a DATE, but somehow internally keeps track of the TIME. · 72f53698
    unknown authored
    LAST_DAY() says it returns a DATE, not a DATETIME, but didn't zero the time fields.
    Adapted from a patch kindly supplied by Claudio Cherubino.
    
    
    mysql-test/r/func_time.result:
      show that LAST_DAY() returns only a DATE, not a DATETIME
    mysql-test/t/func_time.test:
      show that LAST_DAY() returns only a DATE, not a DATETIME
    sql/item_timefunc.cc:
      zero time-fields as we return only a DATE
    72f53698
func_time.test 33.8 KB