Skip to content
Permalink
Browse files
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.
  • Loading branch information
nayuta-yanagisawa committed Jul 25, 2021
1 parent eaae130 commit f52d393
Showing 1 changed file with 2 additions and 0 deletions.
@@ -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;

0 comments on commit f52d393

Please sign in to comment.