From a0c8f330aa627887773dfe79e943f1da72cfcea9 Mon Sep 17 00:00:00 2001 From: asfernandes Date: Fri, 3 Jun 2011 17:39:22 +0000 Subject: [PATCH] Fix problem with database triggers. --- src/jrd/met.epp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/jrd/met.epp b/src/jrd/met.epp index 6b1982f36d..31e20f1738 100644 --- a/src/jrd/met.epp +++ b/src/jrd/met.epp @@ -4835,7 +4835,8 @@ static void save_trigger_data(thread_db* tdbb, trig_vec** ptr, jrd_rel* relation if (!vector) { - vector = FB_NEW(*relation->rel_pool) trig_vec(*relation->rel_pool); + MemoryPool* pool = relation ? relation->rel_pool : attachment->att_pool; + vector = FB_NEW(*pool) trig_vec(*pool); *ptr = vector; }