[FEAT MERGE] Solidify session vars for functional index

This commit is contained in:
obdev
2024-02-07 16:44:49 +00:00
committed by ob-robot
parent aceabf03d5
commit c699ceea48
189 changed files with 3671 additions and 1554 deletions

View File

@ -73,7 +73,6 @@ int ObExprCase::calc_result_typeN(ObExprResType &type,
type_ctx.get_coll_type(),
lib::is_oracle_mode(),
default_length_semantics,
type_ctx.get_session(),
true, false,
is_called_in_sql_))) {
LOG_WARN("failed to aggregate result type");
@ -352,5 +351,12 @@ int ObExprCase::eval_case_batch(const ObExpr &expr,
return ret;
}
DEF_SET_LOCAL_SESSION_VARS(ObExprCase, raw_expr) {
int ret = OB_SUCCESS;
SET_LOCAL_SYSVAR_CAPACITY(1);
EXPR_ADD_LOCAL_SYSVAR(share::SYS_VAR_COLLATION_CONNECTION);
return ret;
}
}
}