Browse Source
BUG#38173 Field doesn't have a default value with row-based replication
BUG#38173 Field doesn't have a default value with row-based replication
NOTE: Backporting the patch to next-mr.
The reason of the bug was incompatibile with the master side behaviour.
INSERT query on the master is allowed to insert into a table without specifying
values of DEFAULT-less fields if sql_mode is not strict.
Fixed with checking sql_mode by the sql thread to decide how to react.
Non-strict sql_mode should allow Write_rows event to complete.
todo: warnings can be shown via show slave status, still this is a
separate rather general issue how to show warnings for the slave threads.
pull/374/head
9 changed files with 88 additions and 196 deletions
-
35mysql-test/extra/rpl_tests/rpl_extraSlave_Col.test
-
15mysql-test/extra/rpl_tests/rpl_row_tabledefs.test
-
52mysql-test/suite/rpl/r/rpl_extraCol_innodb.result
-
52mysql-test/suite/rpl/r/rpl_extraCol_myisam.result
-
44mysql-test/suite/rpl/r/rpl_row_tabledefs_2myisam.result
-
44mysql-test/suite/rpl/r/rpl_row_tabledefs_3innodb.result
-
5sql/log_event.cc
-
34sql/rpl_record.cc
-
3sql/rpl_record.h
Write
Preview
Loading…
Cancel
Save
Reference in new issue