| 1 |
# |
| 2 |
# Inspired by a bug fix for internal Oracle MySQL bug#16324629 |
| 3 |
# |
| 4 |
source include/federated.inc; |
| 5 |
|
| 6 |
connection slave; |
| 7 |
create table federated.t1 (a int, b int, unique key (a), key (b)); |
| 8 |
|
| 9 |
connection master; |
| 10 |
|
| 11 |
--replace_result $SLAVE_MYPORT SLAVE_PORT |
| 12 |
eval create table t1 (a int, b int, unique key (a), key (b)) |
| 13 |
engine=federated CONNECTION='mysql://[email protected]:$SLAVE_MYPORT/federated/t1'; |
| 14 |
|
| 15 |
insert into t1 values (3, 3), (7, 7); |
| 16 |
delete t1 from t1 where b = 3; |
| 17 |
select * from t1; |
| 18 |
drop table t1; |
| 19 |
|
| 20 |
connection slave; |
| 21 |
connection default; |
| 22 |
source include/federated_cleanup.inc; |
| 23 |
|