• Martin Hansson's avatar
    Bug#59173: Failure to handle DATE(TIME) values where Year, Month or Day is · 616e2227
    Martin Hansson authored
    ZERO
          
    When dates are represented internally as strings, i.e. when a string constant
    is compared to a date value, both values are converted to long integers,
    ostensibly for fast comparisons. DATE typed integer values are converted to
    DATETIME by multiplying by 1,000,000 (each digit pair representing hour,
    minute and second, respectively). But the mechanism did not distuinguish
    cached INTEGER values, already in correct format, from newly converted
    strings.
    
    Fixed by marking the INTEGER cache as being of DATETIME format.
    616e2227
item_cmpfunc.cc 144 KB