mariadb/mysql-test/extra/rpl_tests
Sven Sandberg 2f78abd21b BUG#47995: Mark system functions as unsafe
Problem: Some system functions that could return different values on
master and slave were not marked unsafe. In particular:
 GET_LOCK
 IS_FREE_LOCK
 IS_USED_LOCK
 MASTER_POS_WAIT
 RELEASE_LOCK
 SLEEP
 SYSDATE
 VERSION
Fix: Mark these functions unsafe.


mysql-test/extra/rpl_tests/rpl_stm_000001.test:
  - The test does not work in mixed mode any more, since it tries to
    simulate an error in the sql thread in a query that uses get_lock.
    Since get_lock now causes the query to be logged in row format,
    the error didn't happen. Hence, we now force statement mode.
  - Warnings must be disabled when the unsafe query is issued.
  - Replaced some save_master_pos+connection slave+sync_with_master
    by sync_slave_with_master.
mysql-test/suite/binlog/r/binlog_stm_mix_innodb_myisam.result:
  updated result file
mysql-test/suite/binlog/r/binlog_stm_row.result:
  updated result file
mysql-test/suite/binlog/r/binlog_unsafe.result:
  updated result file
mysql-test/suite/binlog/t/binlog_killed.test:
  binlog_killed only works in statement format now, since
  it switches to row mode in mixed mode.
mysql-test/suite/binlog/t/binlog_stm_mix_innodb_myisam.test:
  suppress warnings for unsafe statements
mysql-test/suite/binlog/t/binlog_stm_row.test:
  - Suppress warnings in test that causes warnings.
  - The test sets binlog format explicitly, so no need to execute it
    twice.
mysql-test/suite/binlog/t/binlog_unsafe.test:
  Added test for all unsafe system functions. This test also includes
  system functions that were unsafe prior to BUG#47995.
mysql-test/suite/rpl/r/rpl_err_ignoredtable.result:
  updated result file
mysql-test/suite/rpl/r/rpl_get_lock.result:
  updated result file
mysql-test/suite/rpl/r/rpl_nondeterministic_functions.result:
  new result file
mysql-test/suite/rpl/r/rpl_stm_000001.result:
  updated result file
mysql-test/suite/rpl/r/rpl_trigger.result:
  updated result file
mysql-test/suite/rpl/t/rpl_err_ignoredtable.test:
  - suppress warnings for unsafe statement
  - replaced save_master_pos+connection slave+sync_with_master
    with sync_slave_with_master
mysql-test/suite/rpl/t/rpl_get_lock.test:
  update test case that causes new warnings
mysql-test/suite/rpl/t/rpl_nondeterministic_functions.test:
  Added new test case for nondeterministic functions.
mysql-test/suite/rpl/t/rpl_trigger.test:
  update test case that causes new warnings
sql/item_create.cc:
  Marked some system functions unsafe.
sql/item_strfunc.cc:
  Clarified comment related to this bug.
sql/sql_yacc.yy:
  Marked sysdate unsafe.
2009-11-18 15:50:31 +01:00
..
rpl_auto_increment.test BUG#45999 Row based replication fails when auto_increment field = 0 2009-09-10 18:05:53 +08:00
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 Bug #38360: BLACKHOLE replication with RBR is broken 2008-10-02 21:13:15 +02:00
rpl_charset.test Fix after merge 2008-02-28 18:55:46 +01:00
rpl_commit_after_flush.test
rpl_conflicts.test BUG#37718: rpl.rpl_stm_mystery22 fails sporadically on pushbuild 2009-01-09 15:12:31 +01:00
rpl_ddl.test Upmerge 5.0 -> 5.1 of fix for 2008-08-25 15:09:51 +02:00
rpl_deadlock.test Bug#37716. 2009-04-04 01:33:13 +04:00
rpl_delete_no_where.test
rpl_EE_err.test Merging 5.1 main into 5.1-rpl 2008-10-23 21:27:09 +02:00
rpl_extraMaster_Col.test Bug #39265: fix for the bug 33699 should be reverted 2009-02-05 13:49:32 +04:00
rpl_extraSlave_Col.test Bug #42408 Faulty regex for detecting [Warning] and [ERROR] in mysqld error log 2009-08-28 16:13:27 +02:00
rpl_failed_optimize.test BUG#44661: rpl_ndb.rpl_ndb_circular_simplex fails because of 2009-09-27 23:03:05 +01:00
rpl_flsh_tbls.test Bug#41108: It is a testcase timeout bug so the patch fixes test code in places 2008-12-12 14:34:18 +03:00
rpl_foreign_key.test Bug#31552 Replication breaks when deleting rows from out-of-sync table 2007-12-12 12:14:59 +02:00
rpl_get_master_version_and_clock.test Bug #46931 rpl.rpl_get_master_version_and_clock fails on hpux11.31 2009-09-27 17:00:29 +08:00
rpl_insert_delayed.test fixing the 5.1-opt merge of the fix for bug 29571: 2007-07-27 17:29:48 +03:00
rpl_insert_id.test Bug #32124: crash if prepared statements refer to variables in the where clause 2008-10-08 14:23:53 +03:00
rpl_insert_id_pk.test
rpl_insert_ignore.test
rpl_loaddata.test BUG#48297: Schema name is ignored when LOAD DATA is written into 2009-10-27 15:15:53 +00:00
rpl_loadfile.test BUG#39701: Mixed binlog format does not switch to row mode on 2009-03-24 18:27:33 +00:00
rpl_log.test Post-merge patch for extra/rpl_test/rpl_log.test: 2009-02-02 14:44:18 +03:00
rpl_max_relay_size.test Fix for versional test 2008-01-14 15:38:02 +08:00
rpl_mixing_engines.test BUG#46864 Incorrect update of InnoDB table on slave when using trigger with myisam table 2009-08-27 13:46:29 +01:00
rpl_multi_query.test
rpl_multi_update.test
rpl_multi_update2.test
rpl_multi_update3.test
rpl_ndb_2multi_basic.test BUG#21842 (Cluster fails to replicate to innodb or myisam with err 134 2007-08-26 14:31:10 +02:00
rpl_ndb_2multi_eng.test Problem: pushbuild has sporadic errors during startup of 2008-02-11 15:14:24 +01:00
rpl_ndb_apply_status.test correct merge error 2008-02-14 00:02:25 +01:00
rpl_partition.test
rpl_relayrotate.test
rpl_reset_slave.test BUG#44270: Post-push fix 2009-06-26 12:05:56 +01:00
rpl_row_001.test Use absolute path to allow tets to be run also when datadir differs 2007-12-19 09:42:31 +01:00
rpl_row_basic.test bug#38230 2008-11-06 19:10:09 +02:00
rpl_row_blob.test
rpl_row_delayed_ins.test BUG#29020 (Event results not correctly replicated to slave in RBR): 2008-03-28 13:16:41 +01:00
rpl_row_func003.test
rpl_row_sp002.test Bug #32307 mysqltest - does not detect illegal if syntax 2008-08-04 12:38:50 +02:00
rpl_row_sp003.test
rpl_row_sp006.test BUG#45581 Test rpl_row_sp006_InnoDB fails randomly: Unknown database 'mysqltest1' 2009-09-04 09:33:45 +08:00
rpl_row_sp007.test
rpl_row_tabledefs.test Bug #34654 RESET SLAVE and STOP SLAVE/START SLAVE does not clear Last_XYZ_Errno 2008-03-14 21:02:52 +01:00
rpl_row_UUID.test BUG#28722 (Multi-engine statements on has_own_binlogging engine): 2007-06-22 01:39:23 +02:00
rpl_stm_000001.test BUG#47995: Mark system functions as unsafe 2009-11-18 15:50:31 +01:00
rpl_stm_EE_err2.test BUG#38350: Many tests don't clean up after themselves on exit. 2008-11-13 20:19:00 +01:00
rpl_sv_relay_space.test
rpl_trig004.test
rpl_truncate.test Bug #36763 2009-02-06 17:06:41 +01:00
rpl_truncate_helper.test Bug #36763 2009-02-06 17:06:41 +01:00