mySQL 5.0.11 sources for tomato
[tomato.git] / release / src / router / mysql / mysql-test / suite / federated / federated_plugin.test
blob8c465095cfaa44d986df5369e3f237ce513dc6e3
1 --source include/have_federated_plugin.inc
3 # Uninstall will not uninstall if ps has been used
4 --disable_ps_protocol
6 connect (master,localhost,root,,test,$MASTER_MYPORT,);
7 connect (slave,localhost,root,,test,$SLAVE_MYPORT,);
9 connection master;
10 CREATE TABLE t2(a int);
12 connection slave;
13 CREATE TABLE t1(a int) ENGINE=FEDERATED
14   CONNECTION='mysql://root@localhost:$MASTER_MYPORT/test/t2';
15 DROP TABLE t1;
17 --replace_result $FEDERATED_PLUGIN FEDERATED_PLUGIN
18 eval INSTALL PLUGIN federated SONAME '$FEDERATED_PLUGIN';
19 --replace_result $FEDERATED_PLUGIN FEDERATED_PLUGIN
20 --error ER_UDF_EXISTS
21 eval INSTALL PLUGIN FEDERATED SONAME '$FEDERATED_PLUGIN';
23 UNINSTALL PLUGIN federated;
25 --replace_result $FEDERATED_PLUGIN FEDERATED_PLUGIN
26 eval INSTALL PLUGIN federated SONAME '$FEDERATED_PLUGIN';
28 CREATE TABLE t1(a int) ENGINE=FEDERATED
29   CONNECTION='mysql://root@localhost:$MASTER_MYPORT/test/t2';
30 DROP TABLE t1;
32 UNINSTALL PLUGIN federated;
33 --error ER_SP_DOES_NOT_EXIST
34 UNINSTALL PLUGIN federated;
36 connection master;
37 DROP TABLE t2;