提交 b45018b9 编写于 作者: O obdev 提交者: wangzelin.wzl

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

上级 03f600e8
......@@ -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;
......
......@@ -341,12 +341,12 @@ int ObCallProcedureResolver::resolve(const ParseNode &parse_tree)
}
}
// 解析参数列表
if (OB_SUCC(ret) && params_.is_execute_call_stmt_) {
OZ (stmt->add_params(expr_params));
OX (stmt->set_can_direct_use_param(true));
} else {
// if (OB_SUCC(ret) && params_.is_execute_call_stmt_) {
// OZ (stmt->add_params(expr_params));
// OX (stmt->set_can_direct_use_param(true));
// } else {
OZ (resolve_cparams(params_node, proc_info, stmt));
}
// }
if (OB_SUCC(ret)) {
if (OB_INVALID_ID == proc_info->get_package_id()) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册