mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 21:12:26 +01:00
f30cb12707
client/mysqldump.c: fflush stderr after printing of error message mysql-test/include/have_lowercase0.inc: Remove extra ; mysql-test/r/rpl000015.result: Update result mysql-test/r/rpl_change_master.result: Update result mysql-test/r/rpl_error_ignored_table.result: Update result mysql-test/r/rpl_loaddata.result: Update result mysql-test/r/rpl_log.result: Update result mysql-test/r/rpl_max_relay_size.result: Update result mysql-test/r/rpl_replicate_do.result: Update result mysql-test/t/lowercase_table3.test: Backport from 5.0 mysql-test/t/mysql_protocols.test: Backport from 5.0 mysql-test/t/rpl000015.test: Backport from 5.0 mysql-test/t/rpl_change_master.test: Backport from 5.0 mysql-test/t/rpl_drop_db.test: Backport from 5.0 mysql-test/t/rpl_error_ignored_table.test: Backport from 5.0 mysql-test/t/rpl_loaddata.test: Backport from 5.0 mysql-test/t/rpl_log-master.opt: Use --force-restart command in master.opt to force a restart for this test case mysql-test/t/rpl_log.test: Backport from 5.0 mysql-test/t/rpl_max_relay_size.test: Backport from 5.0 mysql-test/t/rpl_replicate_do.test: Backport from 5.0
61 lines
1.4 KiB
Text
61 lines
1.4 KiB
Text
# This test assumes we are ignoring updates on table t2, but doing
|
|
# updates on t1
|
|
|
|
source include/master-slave.inc;
|
|
--disable_warnings
|
|
drop table if exists t11;
|
|
connection slave;
|
|
drop table if exists t11;
|
|
--enable_warnings
|
|
|
|
create table t2 (n int);
|
|
insert into t2 values(4);
|
|
connection master;
|
|
create table t2 (s char(20));
|
|
load data infile '../std_data_ln/words.dat' into table t2;
|
|
insert into t2 values('five');
|
|
create table t1 (m int);
|
|
insert into t1 values(15),(16),(17);
|
|
update t1 set m=20 where m=16;
|
|
delete from t1 where m=17;
|
|
create table t11 select * from t1;
|
|
save_master_pos;
|
|
connection slave;
|
|
sync_with_master;
|
|
select * from t1;
|
|
select * from t2;
|
|
--error 1146
|
|
select * from t11;
|
|
connection master;
|
|
drop table if exists t1,t2,t11;
|
|
save_master_pos;
|
|
connection slave;
|
|
sync_with_master;
|
|
# show slave status, just to see of it prints replicate-do-table
|
|
--replace_result $MASTER_MYPORT MASTER_PORT
|
|
--replace_column 1 # 8 # 9 # 23 # 33 #
|
|
show slave status;
|
|
|
|
#
|
|
# BUG#12542
|
|
# TEST: "SET ONE_SHOT should always be executed on slave"
|
|
#
|
|
# We could use any timezone different than server default in this test
|
|
#
|
|
connection master;
|
|
create table t1 (ts timestamp);
|
|
set one_shot time_zone='met';
|
|
insert into t1 values('2005-08-12 00:00:00');
|
|
set one_shot time_zone='met';
|
|
select * from t1;
|
|
sync_slave_with_master;
|
|
|
|
connection slave;
|
|
set one_shot time_zone='met';
|
|
select * from t1;
|
|
|
|
connection master;
|
|
drop table t1;
|
|
sync_slave_with_master;
|
|
|
|
# End of 4.1 tests
|