• Alexander Barkov's avatar
    MDEV-28366 GLOBAL debug_dbug setting affected by collation_connection=utf16... · 9fb8881e
    Alexander Barkov authored
    When the system variables @@debug_dbug was assigned to
    some expression, Sys_debug_dbug::do_check() did not properly
    convert the value from the expression character set to utf8.
    So the value was erroneously re-interpretted as utf8 without
    conversion. In case of a tricky expression character set
    (e.g. utf16le), this led to unexpected results.
    
    Fix:
    
    Re-using Sys_var_charptr::do_string_check() in Sys_debug_dbug::do_check().
    9fb8881e
debug_dbug_utf16le.test 587 Bytes