mariadb/mysql-test/suite/binlog/r
unknown 1626b42ca3 BUG#34768 - nondeterministic INSERT using LIMIT logged in stmt mode if
binlog_format=mixed

Statement-based replication of DELETE ... LIMIT, UPDATE ... LIMIT,
INSERT ... SELECT ... LIMIT is not safe as order of rows is not
defined.

With this fix, we issue a warning that this statement is not safe to
replicate in statement mode, or go to row-based mode in mixed mode.

Note that we may consider a statement as safe if ORDER BY primary_key
is present. However it may confuse users to see very similiar statements
replicated differently.

Note 2: regular UPDATE statement (w/o LIMIT) is unsafe as well, but
this patch doesn't address this issue. See comment from Kristian
posted 18 Mar 10:55.


mysql-test/suite/binlog/r/binlog_stm_ps.result:
  Updated a test case according to fix for BUG#34768:
  INSERT ... SELECT ... LIMIT is now replicated in row mode.
mysql-test/suite/binlog/r/binlog_unsafe.result:
  A test case for BUG#34768.
mysql-test/suite/binlog/t/binlog_unsafe.test:
  A test case for BUG#34768.
sql/sql_delete.cc:
  Statement-based replication of DELETE ... LIMIT is not safe as order of
  rows is not defined, so in mixed mode we go to row-based.
sql/sql_insert.cc:
  Statement-based replication of INSERT ... SELECT ... LIMIT is not safe
  as order of rows is not defined, so in mixed mode we go to row-based.
sql/sql_update.cc:
  Statement-based replication of UPDATE ... LIMIT is not safe as order of
  rows is not defined, so in mixed mode we go to row-based.
2008-03-18 20:25:34 +04:00
..
binlog_base64_flag.result BUG#33247: mysqlbinlog does not clean up after itself on abnormal termination 2008-02-08 18:17:00 +01:00
binlog_database.result Bug#32435: 2007-11-16 15:55:22 +01:00
binlog_innodb.result BUG#26395: if crash during autocommit update to transactional table on master, slave fails 2007-12-14 14:40:45 +01:00
binlog_killed.result Merge koti.dsl.inet.fi:/home/elkin/MySQL/TEAM/FIXES/5.0/bug27571_asyn_killed_flags 2007-11-06 20:41:06 +02:00
binlog_killed_simulate.result Test changes to fix failures in pushbuild. 2008-01-29 14:43:41 +01:00
binlog_multi_engine.result BUG#26395: if crash during autocommit update to transactional table on master, slave fails 2007-12-14 14:40:45 +01:00
binlog_old_versions.result BUG#34141: mysqlbinlog cannot read 4.1 binlogs containing load data infile 2008-01-30 14:12:40 +01:00
binlog_row_binlog.result Merge bk-internal.mysql.com:/home/bk/mysql-5.1 2008-02-08 18:55:07 +03:00
binlog_row_ctype_cp932.result After merge fix 2008-03-08 01:14:56 +04:00
binlog_row_ctype_ucs.result WL#3933 Split main test suite to rpl, rpl_ndb and ndb 2007-06-27 14:28:02 +02:00
binlog_row_drop_tmp_tbl.result WL#3933 Split main test suite to rpl, rpl_ndb and ndb 2007-06-27 14:28:02 +02:00
binlog_row_innodb_stat.result WL#3933 Split main test suite to rpl, rpl_ndb and ndb 2007-06-27 14:28:02 +02:00
binlog_row_insert_select.result WL#3933 Split main test suite to rpl, rpl_ndb and ndb 2007-06-27 14:28:02 +02:00
binlog_row_mix_innodb_myisam.result Update new test results after merge (Bug#12713) 2008-02-22 21:49:16 +03:00
binlog_start_comment.result BUG#32205 Replaying statements from mysqlbinlog fails with a syntax error, replicates 2007-12-17 21:13:25 +08:00
binlog_statement_insert_delayed.result WL#3933 Split main test suite to rpl, rpl_ndb and ndb 2007-06-27 14:28:02 +02:00
binlog_stm_binlog.result Manual merge of Bug 33798 2008-02-08 10:47:25 -02:00
binlog_stm_blackhole.result Fix for Bug#32538: View definition picks up character set, 2008-02-12 22:09:16 +03:00
binlog_stm_ctype_cp932.result After merge fix 2008-03-08 01:14:56 +04:00
binlog_stm_ctype_ucs.result BUG#32205 Replaying statements from mysqlbinlog fails with a syntax error, replicates 2007-12-17 21:13:25 +08:00
binlog_stm_drop_tmp_tbl.result WL#3933 Split main test suite to rpl, rpl_ndb and ndb 2007-06-27 14:28:02 +02:00
binlog_stm_innodb_stat.result WL#3933 Split main test suite to rpl, rpl_ndb and ndb 2007-06-27 14:28:02 +02:00
binlog_stm_insert_select.result WL#3933 Split main test suite to rpl, rpl_ndb and ndb 2007-06-27 14:28:02 +02:00
binlog_stm_mix_innodb_myisam.result Update new tests after merge. 2008-02-22 17:51:57 +03:00
binlog_stm_ps.result BUG#34768 - nondeterministic INSERT using LIMIT logged in stmt mode if 2008-03-18 20:25:34 +04:00
binlog_unsafe.result BUG#34768 - nondeterministic INSERT using LIMIT logged in stmt mode if 2008-03-18 20:25:34 +04:00