MDEV-24517 follow-up: Fix for test with --ps-protocol

Tests for the Spider storage engine often use the following idiom:

--let $command=CREATE TABLE t1 (...);CREATE TABLE t2 (...); ...
--eval $command

However, the idiom seems to work in the normal protocol, but fails
in the prepared statement (ps) protocol.
As testing CREATE TABLE statements in the ps protocol, we wrap the
idiom by --disable_ps_protocol and --enable_ps_protocol.
This commit is contained in:
Nayuta Yanagisawa 2021-07-25 17:51:36 +00:00
parent eaae13059f
commit f52d39369a

View file

@ -21,8 +21,10 @@ USE auto_test_remote;
--connection child2_1
--disable_query_log
--disable_ps_protocol
echo CHILD2_1_CREATE_TABLES;
eval $CHILD2_1_CREATE_TABLES;
--enable_ps_protocol
--enable_query_log
TRUNCATE TABLE mysql.general_log;