From d6ec7d5540c1b69c49c66ff38b17e2af4f8a2a8d Mon Sep 17 00:00:00 2001 From: hvlad Date: Fri, 28 Jan 2011 09:17:51 +0000 Subject: [PATCH] Fixed bug CORE-3315 : Audit plugin records a sencond *FAILED* EXECUTE_STATEMENT_FINISH after a "normal" one --- src/jrd/trace/TraceDSQLHelpers.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/jrd/trace/TraceDSQLHelpers.h b/src/jrd/trace/TraceDSQLHelpers.h index fc9eca69d2..d60bce3585 100644 --- a/src/jrd/trace/TraceDSQLHelpers.h +++ b/src/jrd/trace/TraceDSQLHelpers.h @@ -188,6 +188,12 @@ public: ~TraceDSQLFetch() { + // don't trace fetch after EOS + if (m_request && m_request->req_request && + !(m_request->req_request->req_flags & req_active)) + { + return; + } fetch(true, res_failed); }