• Sreeharsha Ramanavarapu's avatar
    Bug #18740222: CRASH IN GET_INTERVAL_INFO WITH WEIRDO · 767bab4a
    Sreeharsha Ramanavarapu authored
                   INTERVALS
    
    ISSUE:
    ------
    Some string functions return one or a combination of the
    parameters as their result. Here the resultant string's
    charset could be incorrectly set to that of the chosen
    parameter.
    
    This results in incorrect behavior when an ascii string is
    expected.
    
    SOLUTION:
    ---------
    Since an ascii string is expected, val_str_ascii should
    explicitly convert the string.
    
    Part of the fix is a backport of Bug#22340858 for mysql-5.5
    and mysql-5.6.
    767bab4a
item_geofunc.cc 17.3 KB