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-13 02:55:33 +01:00
|
|
|
source include/master-slave.inc;
|
2002-08-08 02:12:02 +02:00
|
|
|
|
2001-12-13 02:55:33 +01: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-13 02:55:33 +01:00
|
|
|
insert into t1 values (1);
|
2006-02-13 19:03:12 +01:00
|
|
|
|
|
|
|
# These should work fine
|
2001-12-13 02:55:33 +01:00
|
|
|
insert into t1 values (2),(3);
|
2006-02-13 19:03:12 +01:00
|
|
|
|
2001-12-13 02:55:33 +01: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 02:22:47 +02: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 02:22:47 +02:00
|
|
|
# End of 4.1 tests
|