• unknown's avatar
    Fix for bug #490 and #491 (see details below) · 3132a4cd
    unknown authored
    
    mysql-test/r/insert_select.result:
      Result update.
    mysql-test/r/rpl_insert_id.result:
      Test update
    mysql-test/t/insert_select.test:
      Check if a partly completed INSERT SELECT (failing because of "Duplicate key"
      after successfully inserting other rows) is written to the binlog if the
      table is not transactional and at least one row has been inserted (bug #491)
    mysql-test/t/rpl_insert_id.test:
      Test for bug #490 (INSERT SELECT in auto_increment)
    sql/sql_insert.cc:
      - In INSERT ... SELECT, if it fails with error but one row has been inserted and
      the table is not transactional, we must write to the binlog (the slave will stop
      because of the error code in the binlog event, this is normal). bug 491.
      - we must set INSERT_ID before writing to the binlog (bug 490
      accidentally introduced by another dev in 4.0.13).
    3132a4cd
rpl_insert_id.result 1.18 KB