• Leonard Zhou's avatar
    BUG#22504 load data infile sql statement in replication architecture get error · b42c29cf
    Leonard Zhou authored
    The problem is issued because we set wrong start position and stop position of query string into binlog.
    That two values are stored as part of head info of query string.
    When we parse binlog, we first get position values then get the query string according position values.
    But seems that two values are not calculated correctly after the parse of Yacc.
    
    We don't want to touch so much of yacc because it may influence other codes.
    So just add one space after 'INTO' key word when parsing.
    This can easily resolve the problem.
    
    mysql-test/suite/rpl/r/rpl_loaddatalocal.result:
      Test result
    mysql-test/suite/rpl/t/rpl_loaddatalocal.test:
      Test case
    sql/log_event.cc:
      Add space after 'INTO'.
    b42c29cf
rpl_stm_log.result 7.38 KB