Status/Resolution/Reason: Closed/Withdrawn/AsDesigned
Reporter/Name(from Bugbase): / ()
Created: 04/24/2018
Components: Language
Versions: 2018
Failure Type: Incorrectly functioning
Found In Build/Fixed In Build: 2018,0,0,308650 /
Priority/Frequency: Minor / Some users will encounter
Locale/System: /
Vote Count: 0
Problem:
QueryColumns not validated against numeric[] when passed as a function argument
This is an offset of the bug, CF-4201827
Method:
{code:java}
numeric[] function f(numeric[] myArg){
writeDump(ARGUMENTS.myArg);
return ARGUMENTS.myArg;
}
q = queryNew("id", "integer", [[1],[2]]);
writeDump(f(q["id"]), "format", "text");
{code}
Result:
1 The value 1 returned from the function f is not of declared type numeric[].
Expected:
Validation at (numeric[] myArg) does not work for QueryColumns. The following exception must be thrown, without entering the function context.
"The value 1 passed to the function f is not of declared type numeric[]."
Workaround:
Note:
Attachments:
Comments: