diff --git a/storage/tianchi/tse_ddl_rewriter_plugin.cc b/storage/tianchi/tse_ddl_rewriter_plugin.cc index 089e73ba313a107742631e013372a9f36ef680d5..f9fab1c1a1405bcad3c8c0c1fb7705c7a4bd3a30 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;