to issue<51613550>:fix core when upate plsql_ccflag var
This commit is contained in:
@ -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: {
|
||||
|
||||
@ -2412,7 +2412,7 @@ public:
|
||||
int64_t &pos);
|
||||
|
||||
int init(const ObString &exec_env);
|
||||
int load(ObBasicSessionInfo &session);
|
||||
int load(ObBasicSessionInfo &session, ObIAllocator *alloc = NULL);
|
||||
int store(ObBasicSessionInfo &session);
|
||||
|
||||
ObSQLMode get_sql_mode() { return sql_mode_; }
|
||||
|
||||
Reference in New Issue
Block a user