fix: set transaction variables not working in mysql protocol (#4912)

This commit is contained in:
dennis zhuang
2024-10-30 18:59:13 +08:00
committed by GitHub
parent fd8eba36a8
commit a34035a1f2
2 changed files with 22 additions and 0 deletions

View File

@@ -60,6 +60,8 @@ static OTHER_NOT_SUPPORTED_STMT: Lazy<RegexSet> = Lazy::new(|| {
"(?i)^(SET FOREIGN_KEY_CHECKS(.*))",
"(?i)^(SET AUTOCOMMIT(.*))",
"(?i)^(SET SQL_LOG_BIN(.*))",
"(?i)^(SET SESSION TRANSACTION(.*))",
"(?i)^(SET TRANSACTION(.*))",
"(?i)^(SET sql_mode(.*))",
"(?i)^(SET SQL_SELECT_LIMIT(.*))",
"(?i)^(SET @@(.*))",