Status/Resolution/Reason: To Fix//BugVerified
Reporter/Name(from Bugbase): Abram Adams / Abram Adams (Abram Adams)
Created: 10/14/2015
Components: Language, Wishlist
Versions: 11.0
Failure Type: Enhancement Request
Found In Build/Fixed In Build: CF11_Final /
Priority/Frequency: Trivial / Unknown
Locale/System: English / Linux
Vote Count: 3
Let's add a return type argument to cfquery and queryExecute that allows at least:
* query - default
* struct - array of structs, like [{id:1,name="bob"},{id:2,name="jill"}] (named struct after the undocumented "struct" serializeByColumn option of serializeJSON - I'd rather it be called "array")
* json - the "struct" option returned as a JSON string
Optionally you could add:
* object - instance of an object that has getters/setters for each column in the query - perhaps another arg to pass a base cfc?
* array - the same as deSerializeJSON( serializeJSON( qry ) )
* jsonArray - the same as serializeJSON( qry )
* custom - function that implements a serializer
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 4073759
External Customer Info:
External Company:
External Customer Name: Abram Adams
External Customer Email:
External Test Config: My Hardware and Environment details:
Attachments:
Comments: