Skip to content

Commit 5de920a

Browse files
committed
Fix #9083 - Firebird 6.0.0 can't restore local SP referencing system table
1 parent 42c8a5d commit 5de920a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/dsql/StmtNodes.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1876,7 +1876,7 @@ DmlNode* DeclareSubFuncNode::parse(thread_db* tdbb, MemoryPool& pool, CompilerSc
18761876
CompilerScratch* const subCsb = node->subCsb =
18771877
FB_NEW_POOL(csb->csb_pool) CompilerScratch(csb->csb_pool, csb);
18781878

1879-
subCsb->csb_g_flags |= csb_subroutine | (csb->csb_g_flags & csb_get_dependencies);
1879+
subCsb->csb_g_flags |= csb_subroutine | (csb->csb_g_flags & (csb_get_dependencies | csb_search_system_schema));
18801880
subCsb->csb_blr_reader = csb->csb_blr_reader;
18811881

18821882
BlrReader& reader = subCsb->csb_blr_reader;
@@ -2227,7 +2227,7 @@ DmlNode* DeclareSubProcNode::parse(thread_db* tdbb, MemoryPool& pool, CompilerSc
22272227
CompilerScratch* const subCsb = node->subCsb =
22282228
FB_NEW_POOL(csb->csb_pool) CompilerScratch(csb->csb_pool, csb);
22292229

2230-
subCsb->csb_g_flags |= csb_subroutine | (csb->csb_g_flags & csb_get_dependencies);
2230+
subCsb->csb_g_flags |= csb_subroutine | (csb->csb_g_flags & (csb_get_dependencies | csb_search_system_schema));
22312231
subCsb->csb_blr_reader = csb->csb_blr_reader;
22322232

22332233
BlrReader& reader = subCsb->csb_blr_reader;

0 commit comments

Comments
 (0)