fix mysqltest

This commit is contained in:
hanr881 2024-01-16 04:21:42 +00:00 committed by ob-robot
parent f9a8d97a3d
commit 330e75307f

View File

@ -207,7 +207,7 @@ int ObCreatePackageResolver::resolve(const ParseNode &parse_tree)
}
}
// resolve package body to obtain analyze result again if it exists
if (OB_SUCC(ret)) {
if (OB_SUCC(ret) && package_ast.is_inited()) {
HEAP_VAR(ObPLPackageAST, package_body_ast, *allocator_) {
ObPLPackageGuard package_guard(params_.session_info_->get_effective_tenant_id());
ObSchemaGetterGuard *schema_guard = schema_checker_->get_schema_mgr();