When I tried it, it worked without name. Adobe is very careful about
backward compatibility, so it's unlikely they would break something like
this which probably exists (for better or worse) in a lot of existing code.

On 8/1/07, Kris Jones <[EMAIL PROTECTED]> wrote:
>
> I haven't loaded CF8 yet, or I'd try it myself, but didn't I see
> someone post last week that "name" is a required attribute to cfquery
> in CF8?
>
> > 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.
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

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

Reply via email to