• Tatiana A. Nurnberg's avatar
    Bug#43746: YACC return wrong query string when parse 'load data infile' sql statement · 197182d7
    Tatiana A. Nurnberg authored
    "load data" statements were written to the binlog as a mix of the original statement
    and bits recreated from parse-info. This relied on implementation details and broke
    with IGNORE_SPACES and versioned comments.
    
    We now completely resynthesize the query for LOAD DATA for binlog (which among other
    things normalizes them somewhat with regard to case, spaces, etc.).
    We have already parsed the query properly, so we make use of that rather
    than mix-and-match string literals and parsed items.
    This should make us safe with regard to versioned comments, even those
    spanning multiple tokens. Also no longer affected by IGNORE_SPACES.
    197182d7
mysqlbinlog.result 17 KB