• Michael Widenius's avatar
    Fixed MySQL bug #69861 LAST_INSERT_ID is replicated incorrectly if replication filters are used · 112411b0
    Michael Widenius authored
    
    mysql-test/suite/rpl/r/last_insert_id.result:
      Test case for last_insert_id
    mysql-test/suite/rpl/t/last_insert_id.cnf:
      Test case for last_insert_id
    mysql-test/suite/rpl/t/last_insert_id.test:
      Test case for last_insert_id
    sql/log_event.cc:
      Added DBUG_PRINT
      Set thd->first_successful_insert_id_in_prev_stmt_for_binlog when setting thd->first_successful_insert_id_in_prev_stmt.
      This is required to get last_insert_id() replicated.
      This is analog to how read_first_successful_insert_id_in_prev_stmt() works.
    sql/rpl_utility.cc:
      Added DBUG_PRINT
    112411b0
rpl_utility.cc 33.5 KB