mariadb/mysql-test/suite
unknown d5bf6b8aa8 Bug #56662 Assertion failed: next_insert_id == 0, file .\handler.cc
Normally, auto_increment value is generated for the column by
inserting either NULL or 0 into it. NO_AUTO_VALUE_ON_ZERO
suppresses this behavior for 0 so that only NULL generates
the auto_increment value. This behavior is also followed by
a slave, specifically by the SQL Thread, when applying events
in the statement format from a master. However, when applying
events in the row format, the flag was ignored thus causing
an assertion failure:
"Assertion failed: next_insert_id == 0, file .\handler.cc"

In fact, we never need to generate a auto_increment value for
the column when applying events in row format on slave. So we
don't allow it to happen by using 'MODE_NO_AUTO_VALUE_ON_ZERO'.

Refactoring: Get rid of all the sql_mode checks to rows_log_event
when applying it for avoiding problems caused by the inconsistency
of the sql_mode on slave and master as the sql_mode is not set for
Rows_log_event.

mysql-test/extra/rpl_tests/rpl_auto_increment.test:
  Added test to verify if the assertion of "next_insert_id == 0"
  will fail in ha_external_lock() function.
mysql-test/suite/rpl/r/rpl_auto_increment.result:
  Test result for bug#56662.
sql/log_event.cc:
  Added code to not allow generation of auto_increment value when
  processing rows event by adding 'MODE_NO_AUTO_VALUE_ON_ZERO' to
  sql_mode.
sql/rpl_record.cc:
  Added code to get rid of the 'MODE_STRICT_TRANS_TABLES'  and
  MODE_STRICT_ALL_TABLES check to the table when appling the
  rows event and treat it as no strict.
2010-12-21 12:47:22 +08:00
..
binlog Fixed pb failure. 2010-12-20 10:07:35 +01:00
bugs BUG#49978: Replication tests don't clean up replication state at the end 2010-12-19 18:07:28 +01:00
engines Bug #49741 test files contain explicit references to bin/relay-log positions 2010-05-24 21:54:08 +08:00
federated Bug#35333, "If Federated table can't connect to remote host, can't retrieve 2010-11-29 22:46:43 -06:00
funcs_1 merge from 5.1 2010-09-29 12:56:10 +02:00
funcs_2 merge 5.0-> 5.1 2009-04-24 13:00:17 -04:00
im
innodb Fixed following problems: 2010-12-14 12:33:03 +03:00
innodb_plugin Fixed following problems: 2010-12-14 12:33:03 +03:00
jp Bug #45159 : some tests in suite "jp" fail in embedded server (use LOAD DATA) 2009-09-11 15:52:08 +03:00
large_tests
manual BUG#49978: Replication tests don't clean up replication state at the end 2010-12-19 18:07:28 +01:00
ndb merged 2010-10-05 11:47:03 +03:00
ndb_team BUG#49978: Replication tests don't clean up replication state at the end 2010-12-19 18:07:28 +01:00
parts BUG#49978: Replication tests don't clean up replication state at the end 2010-12-19 18:07:28 +01:00
rpl Bug #56662 Assertion failed: next_insert_id == 0, file .\handler.cc 2010-12-21 12:47:22 +08:00
rpl_ndb BUG#49978: Replication tests don't clean up replication state at the end 2010-12-19 18:07:28 +01:00
stress Merge trift2.:/MySQL/M51/mysql-5.1 2008-02-22 16:14:27 +01:00
sys_vars BUG#49978: Replication tests don't clean up replication state at the end 2010-12-19 18:07:28 +01:00