8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 02:03:03 +01:00

Bugfix CORE-5456: Migrating Firebird 2.5.2 to 3.0.1 gbak restore crashes at the end always

This commit is contained in:
Dmitry Yemanov 2017-01-20 09:10:23 +03:00
parent 6102a813e3
commit e8dd0b1aec

View File

@ -1099,7 +1099,7 @@ ProcedureSourceNode* ProcedureSourceNode::copy(thread_db* tdbb, NodeCopier& copi
newSource->procedure = procedure;
newSource->view = view;
CompilerScratch::csb_repeat* element = CMP_csb_element(copier.csb, newSource->stream);
element->csb_procedure = newSource->procedure;
element->csb_procedure = MET_lookup_procedure_id(tdbb, procedure->getId(), false, false, 0);
element->csb_view = newSource->view;
element->csb_view_stream = copier.remap[0];