support json type

This commit is contained in:
xj0
2022-02-08 14:58:13 +08:00
committed by LINxiansheng
parent 4b25bac8d0
commit e5f59ea074
241 changed files with 46116 additions and 749 deletions

View File

@ -451,6 +451,13 @@ int ObPlanCacheValue::resolver_params(ObPlanCacheCtx& pc_ctx, const stmt::StmtTy
const bool is_paramlize = false;
CHECK_COMPATIBILITY_MODE(session);
int64_t server_collation = CS_TYPE_INVALID;
if (OB_SUCC(ret) && T_QUESTIONMARK == raw_param->type_) {
ObPhysicalPlanCtx *phy_ctx = pc_ctx.exec_ctx_.get_physical_plan_ctx();
int64_t idx = raw_param->value_;
CK (nullptr != phy_ctx);
CK (idx >= 0 && idx < phy_ctx->get_param_store_for_update().count());
OX (value.set_is_boolean(phy_ctx->get_param_store_for_update().at(idx).is_boolean()));
}
if (OB_FAIL(ret)) {
} else if (share::is_oracle_mode() &&
OB_FAIL(session->get_sys_variable(share::SYS_VAR_COLLATION_SERVER, server_collation))) {