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

Minor postfix for CORE-3305: "BLOB not found" error after creation/altering of the invalid trigger.

This commit is contained in:
dimitr 2014-12-04 09:27:36 +00:00
parent e0c490d49e
commit 17978f58f0

View File

@ -4421,7 +4421,9 @@ static void get_trigger(thread_db* tdbb, jrd_rel* relation,
Database* dbb = tdbb->getDatabase(); Database* dbb = tdbb->getDatabase();
blb* blrBlob = BLB_open(tdbb, dbb->dbb_sys_trans, blob_id); blb* blrBlob = BLB_open(tdbb, dbb->dbb_sys_trans, blob_id);
blb* debugInfoBlob = BLB_open(tdbb, dbb->dbb_sys_trans, debug_blob_id); blb* debugInfoBlob = debug_blob_id->isEmpty() ? NULL :
BLB_open(tdbb, dbb->dbb_sys_trans, debug_blob_id);
save_trigger_data(tdbb, ptr, relation, NULL, blrBlob, debugInfoBlob, save_trigger_data(tdbb, ptr, relation, NULL, blrBlob, debugInfoBlob,
name, type, sys_trigger, flags); name, type, sys_trigger, flags);
} }