mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 23:23:04 +01:00
Fixed the problem reported a while ago in fb-devel by Thomas Steinmaurer ("Fb 3 and RDB$MECHANISM values for SP/SF parameters").
This commit is contained in:
parent
3a919dc0d0
commit
9575304592
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user