mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 14:54:20 +01:00
d918988baa
- dynamic configuration support - safe process - cleanups - create new suite for fedarated
34 lines
846 B
Text
34 lines
846 B
Text
source federated.inc;
|
|
source include/have_innodb.inc;
|
|
|
|
#
|
|
# Bug#25513 Federated transaction failures
|
|
#
|
|
connection slave;
|
|
create table federated.t1 (a int primary key, b varchar(64))
|
|
engine=myisam;
|
|
connection master;
|
|
--replace_result $SLAVE_MYPORT SLAVE_PORT
|
|
eval create table federated.t1 (a int primary key, b varchar(64))
|
|
engine=federated
|
|
connection='mysql://root@127.0.0.1:$SLAVE_MYPORT/federated/t1';
|
|
|
|
--error ER_DUP_KEY
|
|
insert into federated.t1 values (1,"Larry"), (2,"Curly"), (1,"Moe");
|
|
select * from federated.t1;
|
|
|
|
connection slave;
|
|
truncate federated.t1;
|
|
alter table federated.t1 engine=innodb;
|
|
connection master;
|
|
|
|
--error ER_DUP_KEY
|
|
insert into federated.t1 values (1,"Larry"), (2,"Curly"), (1,"Moe");
|
|
select * from federated.t1;
|
|
|
|
drop table federated.t1;
|
|
connection slave;
|
|
drop table federated.t1;
|
|
|
|
|
|
source federated_cleanup.inc;
|