2006-02-08 13:08:19 +01:00
|
|
|
##########################################
|
|
|
|
# 2006-02-07 By JBM: Added order by
|
|
|
|
#########################################
|
2006-02-13 19:03:12 +01:00
|
|
|
# Note that errors are ignored by opt file.
|
2001-12-12 18:55:33 -07:00
|
|
|
source include/master-slave.inc;
|
2002-08-08 03:12:02 +03:00
|
|
|
|
2001-12-12 18:55:33 -07:00
|
|
|
create table t1 (n int not null primary key);
|
|
|
|
save_master_pos;
|
|
|
|
connection slave;
|
|
|
|
sync_with_master;
|
|
|
|
insert into t1 values (1);
|
|
|
|
connection master;
|
2006-02-13 19:03:12 +01:00
|
|
|
# Here we expect (ignored) error, since 1 is already in slave table
|
2001-12-12 18:55:33 -07:00
|
|
|
insert into t1 values (1);
|
2006-02-13 19:03:12 +01:00
|
|
|
|
|
|
|
# These should work fine
|
2001-12-12 18:55:33 -07:00
|
|
|
insert into t1 values (2),(3);
|
2006-02-13 19:03:12 +01:00
|
|
|
|
2001-12-12 18:55:33 -07:00
|
|
|
save_master_pos;
|
|
|
|
connection slave;
|
|
|
|
sync_with_master;
|
2006-02-08 13:08:19 +01:00
|
|
|
select * from t1 ORDER BY n;
|
2005-07-28 03:22:47 +03:00
|
|
|
|
2006-02-13 19:03:12 +01:00
|
|
|
# Cleanup
|
2006-01-26 17:54:34 +01:00
|
|
|
connection master;
|
|
|
|
drop table t1;
|
2006-02-13 19:03:12 +01:00
|
|
|
sync_slave_with_master;
|
|
|
|
|
2005-07-28 03:22:47 +03:00
|
|
|
# End of 4.1 tests
|
2007-06-20 14:05:49 +05:00
|
|
|
|
|
|
|
#
|
|
|
|
# #28839 Errors in strict mode silently stop SQL thread if --slave-skip-errors exists
|
|
|
|
#
|
2007-06-21 11:48:01 +05:00
|
|
|
connection master;
|
2007-06-20 14:05:49 +05:00
|
|
|
create table t1(a int primary key);
|
|
|
|
insert into t1 values (1),(2);
|
|
|
|
delete from t1 where @@server_id=1;
|
|
|
|
set sql_mode=strict_trans_tables;
|
|
|
|
select @@server_id;
|
|
|
|
insert into t1 values (1),(2),(3);
|
|
|
|
sync_slave_with_master;
|
|
|
|
connection slave;
|
|
|
|
select @@server_id;
|
|
|
|
select * from t1;
|
2007-06-22 09:28:38 +05:00
|
|
|
--replace_column 1 # 8 # 9 # 23 # 33 #
|
2007-06-21 15:25:28 +05:00
|
|
|
--replace_result $MASTER_MYPORT MASTER_PORT
|
2007-06-20 14:05:49 +05:00
|
|
|
show slave status;
|
|
|
|
connection master;
|
|
|
|
drop table t1;
|
|
|
|
sync_with_master;
|
|
|
|
# End of 5.0 tests
|