to issue<51613550>:fix core when upate plsql_ccflag var

This commit is contained in:
hanr881
2023-08-17 12:11:55 +00:00
committed by ob-robot
parent 8f5bd3f501
commit cac1b6f7f1
3 changed files with 9 additions and 4 deletions

View File

@ -6310,7 +6310,7 @@ int ObExecEnv::init(const ObString &exec_env)
#undef SET_ENV_VALUE
#undef GET_ENV_VALUE
int ObExecEnv::load(ObBasicSessionInfo &session)
int ObExecEnv::load(ObBasicSessionInfo &session, ObIAllocator *alloc)
{
int ret = OB_SUCCESS;
ObObj val;
@ -6339,7 +6339,11 @@ int ObExecEnv::load(ObBasicSessionInfo &session)
}
break;
case PLSQL_CCFLAGS: {
plsql_ccflags_ = val.get_varchar();
if (OB_NOT_NULL(alloc)) {
OZ (ob_write_string(*alloc, val.get_varchar(), plsql_ccflags_));
} else {
plsql_ccflags_ = val.get_varchar();
}
}
break;
default: {