It thinks a is a table reference.

I get this whenever I do QoQs in a function where I var scope LOCAL:

FROM LOCAL.myQuery

I do what you do, assign to another var first.

Would like to hear of a better solution like escaping:

FROM [LOCAL.myQuery]

Adrian

> -----Original Message-----
> From: Justin T [mailto:[email protected]]
> Sent: 23 January 2009 17:43
> To: cf-talk
> Subject: Tiered Dot Notation in where clause query of Queries (QoQ)
> 
> Hi,
> 
> I was just wondering what the reason is behind the error I get when I
> use dot notation with QoQ in the where clause.
> 
> This will throw an error:
> <cfquery name="myQry" dbtype="query">
> select *
> from a.qry
> where a.qry.fkPOCId = 1
> </cfquery>
> 
> This won't:
> 
> <cfset goodQry = a.qry />
> 
> <cfquery name="myQry" dbtype="query">
> select *
> from goodQry
> where goodQry.fkPOCId = 1
> </cfquery>
> 
> It seems that anything beyond a single dot in the where clause will
> cause the QoQ to throw an error.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:318426
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