tracker issue : CF-4202108

select a category, or use search below
(searches all categories and all time range)
Title:

[Typed Collections] Function argument validation skipped for QueryColumns.

| View in Tracker

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:

Related ticket: CF-4201825
Comment by Aaron N.
27686 | May 05, 2018 01:56:58 AM GMT