[CP] [to #57831036] fix anonymous block with composite out parameter in ps mode

This commit is contained in:
obdev
2024-07-25 07:41:10 +00:00
committed by ob-robot
parent d46a0a35db
commit 9f605c632f
8 changed files with 210 additions and 209 deletions

View File

@ -2457,7 +2457,7 @@ int ObSql::handle_ps_execute(const ObPsStmtId client_stmt_id,
// call procedure stmt call always parse as dynamic sql
context.is_dynamic_sql_ = true;
}
if (stmt::T_CALL_PROCEDURE == stmt_type && !context.is_execute_call_stmt_) {
if ((stmt::T_CALL_PROCEDURE == stmt_type || stmt::T_ANONYMOUS_BLOCK == stmt_type) && !context.is_execute_call_stmt_) {
context.is_execute_call_stmt_ = true;
}
ObParser parser(allocator, session.get_sql_mode(),