From 6abdc465cfb4d50760fe0e86c608aa4f341e7a61 Mon Sep 17 00:00:00 2001 From: asfernandes Date: Fri, 16 Oct 2009 15:43:08 +0000 Subject: [PATCH] Fixed CORE-2685 - ALTER VIEW does not remove the system triggers of view with check option --- src/jrd/dyn_mod.epp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/jrd/dyn_mod.epp b/src/jrd/dyn_mod.epp index e08ababd36..b821b5c21a 100644 --- a/src/jrd/dyn_mod.epp +++ b/src/jrd/dyn_mod.epp @@ -2166,6 +2166,17 @@ void DYN_modify_view( Global* gbl, const UCHAR** ptr) END_FOR; CMP_release(tdbb, request2); + + request2 = NULL; + + FOR (REQUEST_HANDLE request2 TRANSACTION_HANDLE gbl->gbl_transaction) + TRG IN RDB$TRIGGERS + WITH TRG.RDB$RELATION_NAME EQ view_name.c_str() + + ERASE TRG; + END_FOR + + CMP_release(tdbb, request2); } UCHAR verb;