From c772344510a010c6eba6865a45ebb48c973f9993 Mon Sep 17 00:00:00 2001 From: Daniele Sciascia Date: Fri, 29 Nov 2024 14:50:14 +0100 Subject: [PATCH] Allow mysqltest to run COMMIT statement under --ps-protocol Fix the regular expression that determines which statements can use the Prepared Statement API, when --ps-protocol is used. The current regular expression allows COMMIT only if it is followed by a whitespace. Meaning that statement "COMMIT ;" is allowed to run with prepared statements, while "COMMIT;" is not. Fix the filter so that both are allowed. Signed-off-by: Julius Goryavsky --- client/mysqltest.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/mysqltest.cc b/client/mysqltest.cc index 3d820834b67..71025814fcf 100644 --- a/client/mysqltest.cc +++ b/client/mysqltest.cc @@ -9620,7 +9620,7 @@ void init_re(void) //"[[:space:]]*CALL[[:space:]]|" // XXX run_query_stmt doesn't read multiple result sets "[[:space:]]*CHANGE[[:space:]]|" "[[:space:]]*CHECKSUM[[:space:]]|" - "[[:space:]]*COMMIT[[:space:]]|" + "[[:space:]]*COMMIT[[:space:]]*|" "[[:space:]]*COMPOUND[[:space:]]|" "[[:space:]]*CREATE[[:space:]]+DATABASE[[:space:]]|" "[[:space:]]*CREATE[[:space:]]+INDEX[[:space:]]|"