How does this treat you? <cfqueryparam cfsqltype="cf_sql_integer" value="#myVariable#" null="#NOT isNumeric(myVariable)#" />
cheers, barneyb On 4/26/05, Pete Ruckelshaus <[EMAIL PROTECTED]> wrote: > Are there any best practices for nulling cfqueryparam values? > Currently I'm having to write a cfscript before this insert query that > checks each value and then sets a specific null variable value that is > then called from the cfqueryparam tag, otherwise the query fails. > Problem is, it's a ton of code (inserting a bunch of columns), I'm > feeling lazy (it's 5:01 and I've been at this page all day), and I > think there should be an easier way (why oh why isn't there an > "autonull" attribute for cfqueryparam?). > > Anyone? > > Pete -- Barney Boisvert [EMAIL PROTECTED] 360.319.6145 http://www.barneyb.com/ Got Gmail? I have 50 invites. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:204557 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

