[to #45421457] ps call stmt need always parse as dynamic sql

This commit is contained in:
obdev
2022-10-27 07:06:30 +00:00
committed by wangzelin.wzl
parent 03f600e89a
commit b45018b9f2
2 changed files with 9 additions and 5 deletions

View File

@ -1611,6 +1611,10 @@ int ObSql::handle_ps_execute(const ObPsStmtId client_stmt_id,
}
}
} else {
if (stmt::T_CALL_PROCEDURE == stmt_type && !context.is_dynamic_sql_) {
// call procedure stmt call always parse as dynamic sql
context.is_dynamic_sql_ = true;
}
ObParser parser(allocator, session.get_sql_mode(),
session.get_local_collation_connection());
ParseResult parse_result;