• Sergey Glukhov's avatar
    Bug#11750518 41090: ORDER BY TRUNCATES GROUP_CONCAT RESULT · b195e6f9
    Sergey Glukhov authored
    When temporary tables is used for result sorting
    result field for gconcat function is created using
    group_concat_max_len size. It leads to result truncation
    when character_set_results is multi-byte character set due
    to insufficient tmp table field size.
    The fix is to increase temporary table field size for
    gconcat. Method make_string_field() is overloaded
    for Item_func_group_concat class and uses
    max_characters * collation.collation->mbmaxlen size for
    result field. max_characters is maximum number of characters
    what can fit into max_length size.
    b195e6f9
item.h 114 KB