Fix ObTempRowStore filling in uniform const format value causing crash

This commit is contained in:
obdev
2024-01-16 11:43:33 +00:00
committed by ob-robot
parent fdc2c51a70
commit efc6695d43
4 changed files with 8 additions and 6 deletions

View File

@ -3867,7 +3867,7 @@ int ObSql::pc_get_plan(ObPlanCacheCtx &pc_ctx,
tmp_ret = OB_E(EventTable::EN_PC_NOT_SWALLOW_ERROR) OB_SUCCESS;
if (OB_SUCCESS != tmp_ret) {
// do nothing
if (OB_SQL_PC_NOT_EXIST == ret) {
if (OB_SQL_PC_NOT_EXIST == ret || OB_REACH_MEMORY_LIMIT == ret) {
ret = OB_SUCCESS;
}
} else {
@ -4202,7 +4202,7 @@ int ObSql::parser_and_check(const ObString &outlined_stmt,
if (OB_SUCC(ret)) {
//租户级别的read only检查
if ((session->is_inner() && !pc_ctx.sql_ctx_.is_from_pl_) || pc_ctx.is_begin_commit_stmt()) {
if (session->is_inner() || pc_ctx.is_begin_commit_stmt()) {
// FIXME:
// schema拆分后,为了避免建租户时获取不到租户read only属性导致建租户失败,对于inner sql
// 暂时跳过read only检查。实际上,对于tenant space系统表,不应该检查read only属性。