Richard Hensman wrote:

>Not a big problem, as I said, I've found work-arounds for most
>everything, I was just curious, seeing as it had been brought up.
>
>We are running CF6.1, but it has been tried on other servers too, just
>for interest's sake.
>
>Could it be more to do with the ADO typing then?  As your test isn't
>actually using a recordset... :) 
>  
>
Once the data is down from the database via ODBC or JDBC it is put into 
a CF query recordset.  CF Query recordsets are just structs of arrays. 
The data becomes untyped as soon as it hits CF.

<cfscript>
recordset = querynew("field");
QueryAddRow(recordset);
QuerySetCell(recordset,"field",23,1);
</cfscript>

<cfif recordset.field eq 23>
    First<br>
</cfif>
<cfif "#recordset.field#" eq "23">
    Second<br>
</cfif>
<cfdump var="#recordset#">

Yields the same result as the previous code snippet, just with a 
variable that CF recognises as a query rather than a simple struct.

Stephen


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:15:878
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/15
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:15
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to