From 827afb7aa484a7d1ea7b26775f8cf2ee8ee3c72b Mon Sep 17 00:00:00 2001 From: asfernandes Date: Fri, 21 Mar 2008 17:05:21 +0000 Subject: [PATCH] Fixed CORE-1798 - RDB$DB_KEY evaluates to NULL in INSERT ... RETURNING --- src/jrd/exe.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/jrd/exe.cpp b/src/jrd/exe.cpp index b64376e06a..b7b7f72291 100644 --- a/src/jrd/exe.cpp +++ b/src/jrd/exe.cpp @@ -3777,6 +3777,8 @@ static jrd_nod* store(thread_db* tdbb, jrd_nod* node, SSHORT which_trig) } } + rpb->rpb_number.setValid(true); + if (relation->rel_post_store && (which_trig != PRE_TRIG) && (trigger = execute_triggers(tdbb, &relation->rel_post_store,