Fix prepared statement does not check read only privilege

This commit is contained in:
obdev
2023-07-11 12:18:44 +00:00
committed by ob-robot
parent 07063663d3
commit 6faec38b94
2 changed files with 58 additions and 40 deletions

View File

@ -474,6 +474,10 @@ private:
int handle_text_execute(const ObStmt *basic_stmt, ObSqlCtx &sql_ctx, ObResultSet &result);
int check_need_reroute(ObPlanCacheCtx &pc_ctx, ObSQLSessionInfo &session, ObPhysicalPlan *plan, bool &need_reroute);
int get_first_batched_multi_stmt(ObMultiStmtItem& multi_stmt_item, ObString& sql);
int check_read_only_privilege(ParseResult &parse_result,
ObExecContext &exec_ctx,
ObSchemaGetterGuard &schema_guard,
ObSqlTraits &sql_traits);
static int add_param_to_param_store(const ObObjParam &param,
ParamStore &param_store);