I poked around by dumping the variables scope, as well as getting into the
underlying Java class that represents the variables scope of a CFC. On both
CF7 and CF8 it appears that an unnamed query does NOT go into the variables
scope. I was thinking it would go in as an unnamed variable, but as far as I
can tell it does not. The query's execution time does go into the variables
scope though, as variables.cfquery.executiontime.

Interestingly, if you specify name="" in the cfquery, then the query DOES go
into the variables scope as an unnamed variable. This is what I had assumed
would also happen if you did not specify the name at all. So it looks like
you're safe. Personally I'd still name it and var scope it anyway, but then
I'm paranoid.

On 8/1/07, Janet MacKay <[EMAIL PROTECTED]> wrote:
>
> > >The unnamed query still goes into the variables scope if you don't
> > var scope it
>
> So does anyone know the answer to the question "If the query is unnamed,
> _what_ is being put into the variables scope?"
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:285112
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to