• Alexander Barkov's avatar
    MDEV-29019 Assertion `(length % 4) == 0' failed in my_lengthsp_utf32 on SELECT · 30f3db3c
    Alexander Barkov authored
    Problem:
    
    Item_func_conv::val_str() copied the ASCII string with the numeric base
    conversion result directly to the function result string. In case of a
    tricky character set (e.g. utf32) it produced an illformed string.
    
    Fix:
    
    Copy the base conversion result to the function result as is only if
    the function character set is ASCII compatible, go through a
    character set conversion otherwise.
    30f3db3c
item_strfunc.cc 144 KB