Skip to content

Commit

Permalink
Postfix for #7586 (procedure output named arguments).
Browse files Browse the repository at this point in the history
Thanks to Pavel Zotov.
  • Loading branch information
asfernandes committed Jan 13, 2024
1 parent 2305463 commit 74976b6
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/jrd/cmp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -560,12 +560,17 @@ bool CMP_procedure_arguments(
argsByName.remove(parameter->prm_name);
}

if (isInput && (!argValue || !*argValue))
if (!argValue || !*argValue)
{
if (parameter->prm_default_value)
*sourceArgIt = CMP_clone_node(tdbb, csb, parameter->prm_default_value);
if (isInput)
{
if (parameter->prm_default_value)
*sourceArgIt = CMP_clone_node(tdbb, csb, parameter->prm_default_value);
else
mismatchStatus << Arg::Gds(isc_param_no_default_not_specified) << parameter->prm_name;
}
else
mismatchStatus << Arg::Gds(isc_param_no_default_not_specified) << parameter->prm_name;
continue;
}

++sourceArgIt;
Expand Down

0 comments on commit 74976b6

Please sign in to comment.