[CP] [MYSQL COMPAT] add mock statement and views

This commit is contained in:
chaser-ch
2024-05-28 13:48:12 +00:00
committed by ob-robot
parent d6ada56d95
commit 47a371d554
25 changed files with 2520 additions and 36 deletions

View File

@ -1648,6 +1648,8 @@ bool ObSQLUtils::is_readonly_stmt(ParseResult &result)
|| T_SHOW_TENANT == type
|| T_SHOW_RESTORE_PREVIEW == type
|| T_SHOW_SEQUENCES == type
|| T_SHOW_ENGINE == type
|| T_SHOW_OPEN_TABLES == type
|| (T_SET_ROLE == type && lib::is_mysql_mode())) {
ret = true;
}