• tnurnberg@mysql.com/sin.intern.azundris.com's avatar
    Bug #21103: DATE column not compared as DATE · f37267bb
    If we compare two items A and B, with B being (a constant) of a
    larger type, then A gets promoted to B's type for comparison if
    it's a constant, function, or CAST() column, but B gets demoted
    to A's type if A is a (not explicitly CAST()) column. This is
    counter-intuitive and not mandated by the standard.
     
    Disabling optimisation where it would be lossy so field value
    will properly get promoted and compared as binary string (rather
    than as integers).
    f37267bb
field.cc 249 KB