From 5c4eea765ffdd5ad4da5df8deb7d1ca1c09e25d2 Mon Sep 17 00:00:00 2001 From: zhaozihao Date: Fri, 22 Mar 2024 11:54:07 +0800 Subject: [PATCH] =?UTF-8?q?tse=5Fcheck=5Fdcl=E4=B8=ADreadonly=E4=B8=8D?= =?UTF-8?q?=E6=8A=9B=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- storage/tianchi/tse_ddl_rewriter_plugin.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/tianchi/tse_ddl_rewriter_plugin.cc b/storage/tianchi/tse_ddl_rewriter_plugin.cc index 089e73b..f9fab1c 100644 --- a/storage/tianchi/tse_ddl_rewriter_plugin.cc +++ b/storage/tianchi/tse_ddl_rewriter_plugin.cc @@ -267,7 +267,7 @@ static int allow_sqlcmd(MYSQL_THD thd, string session_var_name) { } static int tse_check_dcl(string &, MYSQL_THD thd, bool &need_forward) { - if (check_readonly(thd, true) || + if (check_readonly(thd, false) || (thd->lex->query_tables != nullptr && check_schema_readonly(thd, thd->lex->query_tables->table_name))) { need_forward = false; -- Gitee