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

Fixed bug CORE-3557 : AV in engine when preparing query against dropping table

This commit is contained in:
hvlad 2011-07-16 10:01:50 +00:00
parent 12a78668bd
commit 757ea1ee8f

View File

@ -1262,7 +1262,9 @@ void VIO_erase(thread_db* tdbb, record_param* rpb, jrd_tra* transaction)
IBERROR(187); // msg 187 cannot delete system relations
}
DFW_post_work(transaction, dfw_delete_relation, &desc, id);
MET_lookup_relation_id(tdbb, id, false);
jrd_rel* rel_drop = MET_lookup_relation_id(tdbb, id, false);
if (rel_drop)
MET_scan_relation(tdbb, rel_drop);
}
break;