From 95753045924027a208c1e7e27b13708b4320fc40 Mon Sep 17 00:00:00 2001 From: asfernandes Date: Mon, 7 May 2012 15:25:46 +0000 Subject: [PATCH] Fixed the problem reported a while ago in fb-devel by Thomas Steinmaurer ("Fb 3 and RDB$MECHANISM values for SP/SF parameters"). --- src/dsql/DdlNodes.epp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dsql/DdlNodes.epp b/src/dsql/DdlNodes.epp index 0ffc27e2f5..fb8e263f5c 100644 --- a/src/dsql/DdlNodes.epp +++ b/src/dsql/DdlNodes.epp @@ -1776,7 +1776,7 @@ void CreateAlterFunctionNode::storeArgument(thread_db* tdbb, DsqlCompilerScratch ARG.RDB$COLLATION_ID.NULL = TRUE; ARG.RDB$ARGUMENT_MECHANISM.NULL = FALSE; - ARG.RDB$ARGUMENT_MECHANISM = (USHORT) (parameter.fullDomain ? + ARG.RDB$ARGUMENT_MECHANISM = (USHORT) (parameter.fullDomain || parameter.typeOfName.isEmpty() ? prm_mech_normal : prm_mech_type_of); if (parameter.notNull) @@ -2630,7 +2630,7 @@ void CreateAlterProcedureNode::storeParameter(thread_db* tdbb, DsqlCompilerScrat PRM.RDB$PARAMETER_TYPE = type; PRM.RDB$PARAMETER_MECHANISM.NULL = FALSE; - PRM.RDB$PARAMETER_MECHANISM = (USHORT) (parameter.fullDomain ? + PRM.RDB$PARAMETER_MECHANISM = (USHORT) (parameter.fullDomain || parameter.typeOfName.isEmpty() ? prm_mech_normal : prm_mech_type_of); PRM.RDB$NULL_FLAG.NULL = !parameter.notNull;