• anozdrin/alik@ibm.'s avatar
    Fix for 5.1 for BUG#10491: Server returns data as charset binary · 3f2e94c4
    anozdrin/alik@ibm. authored
    SHOW CREATE TABLE or SELECT FROM I_S.
    
    This is the last patch for this bug, which depends on the big
    CS patch and was pending.
    
    The problem was that SHOW CREATE statements returned original
    queries in the binary character set. That could cause the query
    to be unreadable.
    
    The fix is to use original character_set_client when sending
    the original query to the client. In order to preserve the query
    in mysqldump, 'binary' character set results should be set when
    issuing SHOW CREATE statement. If either source or destination
    character set is 'binary' , no conversion is performed.
    The idea is that since the source character set is no longer
    'binary', we fix the destination character set to still produce
    valid dumps.
    3f2e94c4
show_check.test 23.1 KB