This content has been marked as final. Show 1 reply
To clarify... If the query row is omitted from the indexed/array notation, then isValid() and <cfparam /> produce different results.
In the attached code example below, the query row was omitted intentionally to illustrate.
Two possible solutions are:
1) Make isValid() throw an error (so that they both throw an error)
2) Make <cfparam /> not throw an error (so that they both do not throw an error)
I feel the behavior should be consistent. Does anyone feel otherwise? If the behavior should be consistent, then which solution, or other solution, is preferred?