Tuesday, July 5, 2011

ColdFusion - Query column overwrites URL structure

Just ran into an interesting bug. If you have a cfloop of a query which has a column named url, it will overwrite the url struct but only when using conditionals.

For output, query.url and url.urlparam output correctly. However, using isdefined("url.urlparam") returns false, while using structkeyexists(url,"urlparam") throws an error about trying to use a string as a structure with members.

No comments:

Post a Comment