• evgen@moonbone.local's avatar
    Fix bug #12537 UNION produces longtext instead of varchar · d76f9471
    evgen@moonbone.local authored
    Item::tmp_table_field_from_field_type() and create_tmp_field_from_item()
    was converting string field to blob depending on byte-wise length instead of
    character length, which results in converting valid varchar string with
    length == 86 to longtext.
    
    Made that functions above take into account max width of character when
    converting string fields to blobs.
    d76f9471
create.test 13.7 KB