mariadb/mysql-test/extra/rpl_tests
Luis Soares 595719280e BUG#49479: Slave stops with syntax error: LOAD DATA event without
escaped field names

When in mixed or statement mode, the master logs LOAD DATA
queries by resorting to an Execute_load_query_log_event. This
event does not contain the original query, but a rewritten
version of it, which includes the table field names. However, the
rewrite does not escape the field names. If these names match a
reserved keyword, then the slave will stop with a syntax error
when executing the event.

We fix this by escaping the fields names as it happens already
for the table name.

mysql-test/extra/rpl_tests/rpl_loaddata.test:
  Added test case for the reported bug.
mysql-test/r/mysqlbinlog.result:
  Changed result to support escaped field name.
mysql-test/suite/binlog/r/binlog_killed_simulate.result:
  Changed result to support escaped field name.
mysql-test/suite/binlog/r/binlog_row_mix_innodb_myisam.result:
  Changed result to support escaped field name.
mysql-test/suite/binlog/r/binlog_stm_blackhole.result:
  Changed result to support escaped field name.
mysql-test/suite/binlog/r/binlog_stm_mix_innodb_myisam.result:
  Changed result to support escaped field name.
mysql-test/suite/rpl/r/rpl_innodb_mixed_dml.result:
  Changed result to support escaped field name.
mysql-test/suite/rpl/r/rpl_loaddata.result:
  Added result for new test. 
  Changed show slave status positions which are now different because of
  extra escape character in field names.
mysql-test/suite/rpl/r/rpl_loaddata_fatal.result:
  Changed show slave status positions which are now different because of
  extra escape character.
mysql-test/suite/rpl/r/rpl_loaddata_map.result:
  Changed result to support escaped field name.
mysql-test/suite/rpl/r/rpl_stm_log.result:
  Changed result to support escaped field name.
mysql-test/t/mysqlbinlog.test:
  Changed positions which is now different because of extra escape 
  character in field names.
sql/sql_load.cc:
  Appended escape characters before and after field names.
2009-12-06 01:11:32 +00:00
..
rpl_auto_increment.test
rpl_auto_increment_insert_view.test Bug #45677 Slave stops with Duplicate entry for key PRIMARY when using trigger 2009-10-01 07:19:36 +08:00
rpl_auto_increment_invoke_trigger.test Bug #45677 Slave stops with Duplicate entry for key PRIMARY when using trigger 2009-10-01 07:19:36 +08:00
rpl_autoinc_func_invokes_trigger.test Bug #45677 Slave stops with Duplicate entry for key PRIMARY when using trigger 2009-10-01 07:19:36 +08:00
rpl_blackhole.test
rpl_charset.test
rpl_commit_after_flush.test
rpl_conflicts.test
rpl_ddl.test
rpl_deadlock.test
rpl_delete_no_where.test
rpl_EE_err.test
rpl_extraMaster_Col.test
rpl_extraSlave_Col.test BUG#48091 valgrind errors when slave has double not null and master has double null 2009-10-22 01:21:50 +01:00
rpl_failed_optimize.test
rpl_flsh_tbls.test
rpl_foreign_key.test
rpl_get_master_version_and_clock.test
rpl_insert_delayed.test
rpl_insert_id.test
rpl_insert_id_pk.test
rpl_insert_ignore.test
rpl_loaddata.test BUG#49479: Slave stops with syntax error: LOAD DATA event without 2009-12-06 01:11:32 +00:00
rpl_loadfile.test
rpl_log.test
rpl_max_relay_size.test
rpl_mixing_engines.test
rpl_multi_query.test
rpl_multi_update.test
rpl_multi_update2.test
rpl_multi_update3.test
rpl_ndb_2multi_basic.test
rpl_ndb_2multi_eng.test
rpl_ndb_apply_status.test
rpl_not_null.test BUG#48091 valgrind errors when slave has double not null and master has double null 2009-10-22 01:19:52 +01:00
rpl_partition.test
rpl_relayrotate.test
rpl_reset_slave.test
rpl_row_001.test
rpl_row_basic.test
rpl_row_blob.test
rpl_row_delayed_ins.test
rpl_row_func003.test
rpl_row_sp002.test
rpl_row_sp003.test
rpl_row_sp006.test
rpl_row_sp007.test
rpl_row_tabledefs.test BUG#48091 valgrind errors when slave has double not null and master has double null 2009-10-22 01:10:42 +01:00
rpl_row_UUID.test
rpl_stm_000001.test BUG#47995: Mark system functions as unsafe 2009-11-18 15:50:31 +01:00
rpl_stm_EE_err2.test
rpl_sv_relay_space.test
rpl_trig004.test
rpl_truncate.test
rpl_truncate_helper.test