This is the method I use and I find I only need to use it when dealing with
dates. Probably because I tend to default numerics to zero.
On 4/26/05, Pete Ruckelshaus <[EMAIL PROTECTED]> wrote:
>
> Here's what I'm doing:
>
> QUERY
>
> <cfscript>
> if (isNumeric(getDataCards.dcardid)) {
> dcardid_null="no";
> } else {
> dcardid_null="yes";
> }
> </cfscript>
>
> And in the insert statement:
>
> <cfqueryparam value="#getRecordData.dcardid#"
> cfsqltype="CF_SQL_INTEGER" null="#dcardid_null#">
>
> So, yeah, I'm using the null attribute, I just don't want to go
> through the shenanigans to determine the value for that attribute.
>
> Pete
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble
Ticket application
http://www.houseoffusion.com/banners/view.cfm?bannerid=48
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:204567
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=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54