mariadb/mysql-test/suite
Luis Soares 6dff801284 BUG#39701: Mixed binlog format does not switch to row mode on
LOAD_FILE
            
LOAD_FILE is not safe to replicate in STATEMENT mode, because it
depends on a file (which is loaded on master and may not exist in
slave(s)). This leads to scenarios on which the slave replicates the
statement with 'load_file' and it will try to load the file from local
file system. Given that the file may not exist in the slave filesystem
the operation will not succeed (probably returning NULL), causing
master and slave(s) to diverge. However, when using MIXED mode
replication, this can be made to work, if the statement including
LOAD_FILE is marked as unsafe, triggering a switch to ROW mode,
meaning that the contents of the file are written to binlog as row
events. Consequently, the contents from the file in the master will
reach the slave via the binlog.
           
This patch addresses this bug by marking the load_file function as
unsafe. When in mixed mode and when LOAD_FILE is issued, there will be
a switch to row mode. Furthermore, when in statement mode, the
LOAD_FILE will raise a warning that the statement is unsafe in that
mode.
2009-03-24 18:27:33 +00:00
..
binlog Bug #40559 assertion failed in check_binlog_magic 2009-03-06 20:19:29 +02:00
bugs merged 5.1-main -> 5.1-bugteam 2009-01-30 15:44:49 +02:00
federated Merge 5.0-bugteam to 5.1-bugteam 2009-03-19 14:19:51 +05:30
funcs_1 addendum to the 22047 fix : updated funcs_1 test suite 2009-03-18 14:52:31 +02:00
funcs_2 Fix for Bug#40904 20 tests in 5.1 are disabled in a bad manner 2008-12-08 15:36:42 +01:00
im Move instance manager tests to it's own suite 2007-08-29 19:02:33 +02:00
jp fixed jp test failures 2009-02-02 14:42:33 +04:00
large_tests Bug#27029 alter table ... enable keys crashes mysqld on large table 2007-06-21 12:45:56 -04:00
manual manual merge for bug_29136, bug#29309. 2007-10-13 23:12:50 +03:00
ndb Bug#41307: Tests using include/ndb_backup.inc won't work on Windows due to 'grep' call. 2009-03-16 17:36:14 -04:00
ndb_team Bug#41307: Tests using include/ndb_backup.inc won't work on Windows due to 'grep' call. 2009-03-16 17:36:14 -04:00
parts Bug#41307: Tests using include/ndb_backup.inc won't work on Windows due to 'grep' call. 2009-03-16 17:36:14 -04:00
rpl BUG#39701: Mixed binlog format does not switch to row mode on 2009-03-24 18:27:33 +00:00
rpl_ndb Bug#41307: Tests using include/ndb_backup.inc won't work on Windows due to 'grep' call. 2009-03-16 17:36:14 -04:00
stress Merge trift2.:/MySQL/M51/mysql-5.1 2008-02-22 16:14:27 +01:00
sys_vars Merge to be able to push. 2009-03-24 11:48:38 +01:00