From 979c03be356fbec25a4b42c498f3e25647c5252c Mon Sep 17 00:00:00 2001 From: Adriano dos Santos Fernandes Date: Fri, 25 Nov 2022 08:47:24 -0300 Subject: [PATCH] Fixed #7391 - AV when compiling stored procedure. --- src/dsql/ExprNodes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dsql/ExprNodes.cpp b/src/dsql/ExprNodes.cpp index b40a0f9ed5..561dc9e66d 100644 --- a/src/dsql/ExprNodes.cpp +++ b/src/dsql/ExprNodes.cpp @@ -9649,7 +9649,7 @@ ParameterNode* ParameterNode::copy(thread_db* tdbb, NodeCopier& copier) const // in nod_argument. If it doesn't, it may be an input parameter cloned // in RseBoolNode::convertNeqAllToNotAny - see CORE-3094. - if (copier.message && copier.message->messageNumber == message->messageNumber) + if (copier.message && copier.message->messageNumber == messageNumber) node->message = copier.message; else node->message = message;