I don't want to use it like that. That's not the name of the table 
and this is not the expected behavior. This is a bug in CF or in the 
driver. I'm trying to find out which.

>I meant to add try using it aliased like #m.main_category_id#
>
>Control + Enter is the worst shortcut ever. :-)
>
>..:.:.:.:.:.:.:.:.:.:.:.
>Bobby Hartsfield
>http://acoderslife.com
>
>
>
>
>
>-----Original Message-----
>From: Bud [mailto:[EMAIL PROTECTED]
>Sent: Friday, November 17, 2006 8:13 AM
>To: CF-Talk
>Subject: Queries adding table Alias to column name
>
>ARRGGHH!! Is this a CF issue or an Access database driver issue?
>
>http://azarflooringgallery.com/bud.cfm
>
>This is a very simple, and quite standard query.
>
>SELECT M.*,C.*
>FROM Main_Categories M LEFT OUTER JOIN Categories C on
>M.Main_Category_ID = C.Main_Category_ID
>
>Note the Main_Category_ID is being returned with the alias in it's
>name. The field is actually named Main_Category_ID
>
>C.Main_Category_ID and M.Main_Category_ID
>
>I'm getting the error Variable MAIN_CATEGORY_ID is undefined.
>
>I can get it to go away, but only if I manually enter all field names
>and exclude Main_Category_ID from one of the tables.
>
>Why would someone change the behavior of something so drastically?
>This will be affecting code everywhere.
>--
>
>Bud Schneehagen - Tropical Web Creations, Inc.
>
>_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
>Web Based Solutions / eCommerce Development & Hosting
>http://www.twcreations.com/ - http://www.cf-ezcart.com/
>Toll Free: 877.207.6397 - Local & Int'l Phone/Fax: 386.789.0968
>
>
>
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:261008
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