Skip to content

Commit dcfd85c

Browse files
hanr881ob-robot
authored andcommitted
fix core when access package guard from exec ctx
1 parent 1b78011 commit dcfd85c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/pl/ob_pl.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2513,9 +2513,12 @@ int ObPLExecuteArg::obtain_routine(ObExecContext &ctx,
25132513
{
25142514
int ret = OB_SUCCESS;
25152515
ObPLFunction *local_routine = NULL;
2516+
ObPLPackageGuard *package_guard = nullptr;
2517+
OZ (ctx.get_package_guard(package_guard));
2518+
CK (OB_NOT_NULL(package_guard));
25162519

25172520
OZ (GCTX.pl_engine_->get_pl_function(ctx,
2518-
*ctx.get_package_guard(),
2521+
*package_guard,
25192522
package_id,
25202523
routine_id,
25212524
subprogram_path,

0 commit comments

Comments
 (0)