Fix ps prepare stage error 4016

This commit is contained in:
obdev
2023-07-27 10:42:29 +00:00
committed by ob-robot
parent 9ed642a58f
commit 553f5616ad
4 changed files with 7 additions and 9 deletions

View File

@ -153,8 +153,8 @@ int ObExprJsonObject::calc_result_typeN(ObExprResType& type,
ObExecContext* ctx = nullptr;
bool is_deduce_input = true;
if (OB_NOT_NULL(session) && OB_NOT_NULL(ctx = session->get_cur_exec_ctx())) {
is_deduce_input = (!ctx->is_ps_prepare_stage());
if (OB_NOT_NULL(session)) {
is_deduce_input = (!session->is_varparams_sql_prepare());
}
for (int64_t i = 0; OB_SUCC(ret) && is_deduce_input && i < param_num; i += 2) {