mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 13:32:33 +01:00
f9c8d1dd7f
into mysql.com:/nfsdisk1/lars/MERGE/mysql-5.1-merge mysql-test/t/innodb.test: Auto merged mysql-test/t/ndb_basic.test: Auto merged mysql-test/t/ndb_charset.test: Auto merged mysql-test/t/ndb_index_unique.test: Auto merged mysql-test/t/ndb_insert.test: Auto merged mysql-test/t/ndb_replace.test: Auto merged mysql-test/t/ndb_update.test: Auto merged mysql-test/t/rpl_000015.test: Auto merged mysql-test/t/rpl_rotate_logs.test: Auto merged mysql-test/t/rpl_row_inexist_tbl.test: Auto merged sql/Makefile.am: Auto merged BitKeeper/deleted/.del-ndb_binlog_basic2.test: Auto merged sql/field.cc: Auto merged sql/handler.cc: Auto merged sql/mysql_priv.h: Auto merged sql/mysqld.cc: Auto merged sql/set_var.cc: Auto merged sql/sql_class.h: Auto merged sql/sql_insert.cc: Auto merged sql/sql_parse.cc: Auto merged storage/myisam/ha_myisam.cc: Auto merged sql/item_create.cc: Manual merge
33 lines
817 B
Text
33 lines
817 B
Text
# Test to see what slave says when master is updating a table it does
|
|
# not have
|
|
--source include/have_binlog_format_row.inc
|
|
|
|
source include/master-slave.inc;
|
|
|
|
connection master;
|
|
create table t1 (a int not null primary key);
|
|
insert into t1 values (1);
|
|
create table t2 (a int);
|
|
insert into t2 values (1);
|
|
update t1, t2 set t1.a = 0 where t1.a = t2.a;
|
|
|
|
sync_slave_with_master;
|
|
# t2 should not have been replicated
|
|
# t1 should have been properly updated
|
|
show tables;
|
|
select * from t1;
|
|
drop table t1;
|
|
|
|
connection master;
|
|
insert into t1 values (1);
|
|
|
|
connection slave;
|
|
# slave should have stopped because can't find table t1
|
|
--source include/wait_for_slave_sql_to_stop.inc
|
|
# see if we have a good error message:
|
|
--replace_column 7 #
|
|
source include/show_slave_status.inc;
|
|
|
|
# cleanup
|
|
connection master;
|
|
drop table t1, t2;
|