• Neeraj Bisht's avatar
    Bug#18207212 : FILE NAME IS NOT ESCAPED IN BINLOG FOR LOAD DATA INFILE STATEMENT · cb0afbd1
    Neeraj Bisht authored
    Problem:
    Load_log_event::print_query() function does not put escape character in file name 
    for "LOAD DATA INFILE" statement.
    
    Analysis:
    When we have "'" in our file name for "LOAD DATA INFILE" statement,
    Load_log_event::print_query() function does not put escape character 
    in our file name.
    
    This one result that when we show binary-log, we get file name without 
    escape character.
    
    Solution:
    To put escape character when we have "'" in file name, for this instead of using 
    simple memcpy() to put file-name, we will use pretty_print_str().
    cb0afbd1
mf_iocache2.c 12.5 KB