--disable_query_log
--disable_result_log
--source ../../t/test_init.inc
--enable_result_log
--enable_query_log

set spider_same_server_link= 1;
evalp CREATE SERVER srv FOREIGN DATA WRAPPER mysql
OPTIONS (SOCKET "$MASTER_1_MYSOCK", DATABASE 'test',user 'root');

CREATE TABLE t (f INT);
INSERT INTO t VALUES (1),(2);
SET @a = 4;
SET @a = NULL;
CREATE TABLE t_spider LIKE t;
ALTER TABLE t_spider ENGINE=SPIDER COMMENT = 'wrapper "mysql", srv "srv", table "t"';
DELETE FROM t_spider WHERE f > 0 or f < @a;
SELECT * FROM t_spider;

drop table t, t_spider;
drop server srv;
--disable_query_log
--disable_result_log
--source ../../t/test_deinit.inc
--enable_result_log
--enable_query_log
