Status/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): David McGuigan / David McGuigan (David McGuigan)
Created: 07/05/2009
Versions: 9.0
Failure Type: Unspecified
Found In Build/Fixed In Build: 0000 /
Priority/Frequency: Normal / Unknown
Locale/System: English / Platforms All
Vote Count: 8
Problem:
I love cfqueryparam. But I do not love its syntax.
I’d like to be able to ( optionally ) use a cleaner, more-readable "shorthand" that parallels the current one for cfsqltype and its options.
Instead of cfsqltype the attribute syntax "type" could be used and all of its values would be identical minus the cf_sql_ prefix.
So
<cfqueryparam cfsqltype="cf_sql_varchar" value="#trim( etc )#" />
could also be coded:
<cfqueryparam type="varchar" value="#trim( etc )#" />
It seems like this would be super easy to add to the language and would accelerate the coding of each cfqp significantly ( currently you have to type "cf_sql_[ first letter of your desired type ]" to get code hinting to suggest what you want. With the new syntax it would be a single keystroke. This is the major reason for this enhancement request, rapider application development ( though it’s also measurably easier to read ).
Method:
Result:
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3039143
External Customer Info:
External Company:
External Customer Name: David McGuigan
External Customer Email: 5E0D54C04462BF5E992016B6
External Test Config: 07/05/2009
Attachments:
Comments: