for master_1
for child2
for child3
connection master_1;
set @old_spider_same_server_link= @@spider_same_server_link;
set spider_same_server_link= ON;

this test is for MDEV-6268

drop and create databases
connection master_1;
CREATE DATABASE auto_test_local;
USE auto_test_local;

create table
connection master_1;
CREATE TABLE tbl_a (
pkey int NOT NULL,
PRIMARY KEY (pkey)
) MASTER_1_ENGINE MASTER_1_CHARSET MASTER_1_COMMENT_2_1
Warnings:
Warning	138	Spider table params in COMMENT or CONNECTION strings have been deprecated and will be removed in a future release. Please use table options instead.

select test 1
connection master_1;
SELECT pkey FROM tbl_a;
ERROR HY000: An infinite loop is detected when opening table auto_test_local.tbl_a

deinit
connection master_1;
DROP DATABASE IF EXISTS auto_test_local;
connection master_1;
set spider_same_server_link= @old_spider_same_server_link;
for master_1
for child2
for child3

end of test
