Commit 068246c0 authored by Sergei Golubchik's avatar Sergei Golubchik

fix spider tests for --ps

spider tests use

--let $var= many;sql;statements
--eval $var

and this doesn't work in ps
parent a5f6eca5
...@@ -22,7 +22,9 @@ USE auto_test_remote; ...@@ -22,7 +22,9 @@ USE auto_test_remote;
--connection child2_1 --connection child2_1
--disable_query_log --disable_query_log
echo CHILD2_1_CREATE_TABLES; echo CHILD2_1_CREATE_TABLES;
--disable_ps_protocol
eval $CHILD2_1_CREATE_TABLES; eval $CHILD2_1_CREATE_TABLES;
--enable_ps_protocol
--enable_query_log --enable_query_log
TRUNCATE TABLE mysql.general_log; TRUNCATE TABLE mysql.general_log;
...@@ -66,7 +68,9 @@ SELECT a, b, c FROM tbl_a PARTITION (pt2,pt3); ...@@ -66,7 +68,9 @@ SELECT a, b, c FROM tbl_a PARTITION (pt2,pt3);
--connection child2_1 --connection child2_1
eval $CHILD2_1_SELECT_ARGUMENT1; eval $CHILD2_1_SELECT_ARGUMENT1;
--disable_ps_protocol
eval $CHILD2_1_SELECT_TABLES; eval $CHILD2_1_SELECT_TABLES;
--enable_ps_protocol
--echo --echo
--echo deinit --echo deinit
......
...@@ -22,7 +22,9 @@ USE auto_test_remote; ...@@ -22,7 +22,9 @@ USE auto_test_remote;
--connection child2_1 --connection child2_1
--disable_query_log --disable_query_log
echo CHILD2_1_CREATE_TABLES; echo CHILD2_1_CREATE_TABLES;
--disable_ps_protocol
eval $CHILD2_1_CREATE_TABLES; eval $CHILD2_1_CREATE_TABLES;
--enable_ps_protocol
--enable_query_log --enable_query_log
TRUNCATE TABLE mysql.general_log; TRUNCATE TABLE mysql.general_log;
...@@ -78,7 +80,9 @@ SELECT STRAIGHT_JOIN b.a, b.b FROM tb_l a, tbl_a b WHERE a.a = b.a; ...@@ -78,7 +80,9 @@ SELECT STRAIGHT_JOIN b.a, b.b FROM tb_l a, tbl_a b WHERE a.a = b.a;
--connection child2_1 --connection child2_1
SET NAMES utf8; SET NAMES utf8;
eval $CHILD2_1_SELECT_ARGUMENT1; eval $CHILD2_1_SELECT_ARGUMENT1;
--disable_ps_protocol
eval $CHILD2_1_SELECT_TABLES; eval $CHILD2_1_SELECT_TABLES;
--enable_ps_protocol
--echo --echo
--echo deinit --echo deinit
......
...@@ -49,6 +49,8 @@ TRUNCATE TABLE mysql.general_log; ...@@ -49,6 +49,8 @@ TRUNCATE TABLE mysql.general_log;
SELECT * FROM tbl_a ORDER BY pkey; SELECT * FROM tbl_a ORDER BY pkey;
--connection child2_1 --connection child2_1
# in --ps a query is logged differently in a general log
replace_regex /order by t0.`pkey`/order by `pkey`/;
eval $CHILD2_1_SELECT_ARGUMENT1; eval $CHILD2_1_SELECT_ARGUMENT1;
eval $CHILD2_1_SELECT_TABLES; eval $CHILD2_1_SELECT_TABLES;
......
--source include/no_protocol.inc
--source ../include/partition_mrr_init.inc --source ../include/partition_mrr_init.inc
if (!$HAVE_PARTITION) if (!$HAVE_PARTITION)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment