• Alexander Barkov's avatar
    MDEV-22380: Assertion `name.length == strlen(name.str)' failed ... · e97b785d
    Alexander Barkov authored
    Also fixes:
    MDEV-25399 Assertion `name.length == strlen(name.str)' failed in Item_func_sp::make_send_field
    
    Also fixes a problem that in this scenario:
    
    SET NAMES binary;
    SELECT 'some not well-formed utf8 string';
    
    the auto-generated column name copied the binary string value directly
    to the Item name, without checking utf8 well-formedness.
    
    After this change auto-generated column names work as follows:
    - Zero bytes 0x00 are copied to the name using HEX notation
    - In case of "SET NAMES binary", all bytes sequences that do not make
      well-formed utf8 characters are copied to the name using HEX notation.
    e97b785d
cast.result 42 KB