| 1 |
source include/federated.inc; |
| 2 |
|
| 3 |
connection master; |
| 4 |
# |
| 5 |
# MDEV-388 Creating a federated table with a non-existing server returns a random error code |
| 6 |
# |
| 7 |
--error 1 |
| 8 |
CREATE TABLE t1 (a INT) ENGINE=FEDERATED CONNECTION='non_existing'; |
| 9 |
--replace_result "Not owner" "Operation not permitted" |
| 10 |
SHOW WARNINGS; |
| 11 |
|
| 12 |
# |
| 13 |
# MDEV-4468 Assertion `error != 0' fails or timeout occurs on select from a FEDERATED table which points at a non-existent table |
| 14 |
# |
| 15 |
|
| 16 |
create table t1 (a int); |
| 17 |
--replace_result $MASTER_MYPORT MASTER_PORT |
| 18 |
eval create table fed (a int) engine=Federated CONNECTION='mysql://[email protected]:$MASTER_MYPORT/test/t1'; |
| 19 |
drop table t1; |
| 20 |
--error 1146,1431 |
| 21 |
select * from fed; |
| 22 |
drop table fed; |
| 23 |
|
| 24 |
source include/federated_cleanup.inc; |
| 25 |
|