From f7b0b0782fc7bd8afbb968390bc4f22ad24fb2ca Mon Sep 17 00:00:00 2001 From: tison Date: Sat, 9 Dec 2023 11:15:41 +0800 Subject: [PATCH] chore: ignore MySQL client sent SELECT $$ Signed-off-by: tison --- src/servers/src/mysql/federated.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/servers/src/mysql/federated.rs b/src/servers/src/mysql/federated.rs index 80d0cb54ab94..ca4948d6657e 100644 --- a/src/servers/src/mysql/federated.rs +++ b/src/servers/src/mysql/federated.rs @@ -80,6 +80,9 @@ static OTHER_NOT_SUPPORTED_STMT: Lazy = Lazy::new(|| { "(?i)^(SHOW COLLATION)", "(?i)^(SHOW CHARSET)", + // mysqlclient. + "(?i)^(SELECT \\$\\$)", + // mysqldump. "(?i)^(SET SESSION(.*))", "(?i)^(SET SQL_QUOTE_SHOW_CREATE(.*))",