fix mysqltest

This commit is contained in:
obdev 2024-09-18 07:52:22 +00:00 committed by ob-robot
parent 1584d80d64
commit 6c1e485dfd

View File

@ -7924,7 +7924,8 @@ int ObResolverUtils::resolve_external_symbol(common::ObIAllocator &allocator,
int ret = OB_SUCCESS;
if (NULL == package_guard) {
// patch bugfix from 42x: 55397384
if (NULL != session_info.get_cur_exec_ctx()) {
if (NULL != session_info.get_cur_exec_ctx()
&& NULL != session_info.get_cur_exec_ctx()->get_sql_ctx()) { // bypass tmp ObExecContext
OZ (session_info.get_cur_exec_ctx()->get_package_guard(package_guard));
CK (OB_NOT_NULL(package_guard));
} else {