Skip to content

Commit

Permalink
Merge branch 'work/gh-7428' into B3_0_Release
Browse files Browse the repository at this point in the history
  • Loading branch information
hvlad committed Jan 23, 2023
2 parents 98c0a41 + e7e2511 commit 2d751bc
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/dsql/metd.epp
Original file line number Diff line number Diff line change
Expand Up @@ -843,9 +843,13 @@ dsql_udf* METD_get_function(jrd_tra* transaction, DsqlCompilerScratch* dsqlScrat

if (MET_dsql_cache_use(tdbb, SYM_udf, metaName.identifier, metaName.package))
userFunc->udf_flags |= UDF_dropped;
}

if (userFunc && (userFunc->udf_flags & UDF_dropped))
userFunc = NULL;

if (userFunc)
return userFunc;
}

// Now see if it is in the database

Expand Down Expand Up @@ -1204,9 +1208,13 @@ dsql_prc* METD_get_procedure(jrd_tra* transaction, DsqlCompilerScratch* dsqlScra

if (MET_dsql_cache_use(tdbb, SYM_procedure, metaName.identifier, metaName.package))
procedure->prc_flags |= PRC_dropped;
}

if (procedure && (procedure->prc_flags & PRC_dropped))
procedure = NULL;

if (procedure)
return procedure;
}

// now see if it is in the database

Expand Down

0 comments on commit 2d751bc

Please sign in to comment.