• Sergey Glukhov's avatar
    Bug#57810 case/when/then : Assertion failed: length || !scale · b69b46c7
    Sergey Glukhov authored
    ASSERT happens due to improper calculation of the max_length
    in Item_func_div object, if dividend has max_length == 0 then
    Item_func_div::max_length is set to 0 under some circumstances.
    The fix:
    If decimals == NOT_FIXED_DEC then set
    Item_func_div::max_length to max possible
    DOUBLE length value.
    b69b46c7
func_math.result 18.4 KB