cf8 cfquery multiple table join with same column names - defect
This appears to be a defect within CF8 cfquery object. I am at a loss as to a solution or a good work around. As for background, this query is generated dynamically on the fly based on what a user passes into it. It is not the most elegent SQL code but it does work and return all of the columns. The application itself is a database viewer for looking at logs. Below is an example of a query being generated.
select *
from web_trans,web_info_trans,web_res_trans
where (web_info_trans.trans_dte >= '2008-12-1'
and web_info_trans.trans_dte < '2008-12-2')
and (web_info_trans.trans_dte = web_trans.trans_dte)
and (web_info_trans.trans_num = 5060345)
and (web_info_trans.trans_num = web_trans.trans_num)
and (web_res_trans.trans_num = 5060345)
and (web_res_trans.trans_num = web_trans.trans_num)
and (web_trans.web_trans_cde = 'LLRN')
and (web_trans.web_status_cde = 'P')
and (web_trans.TRANS_NUM < 5060347 )
order by web_trans.TRANS_NUM desc
These three tables contain a similar column called ZIP_CDE. They each contain different values, and when this query is performed in Microsoft Query Analyzer the results are displayed correctly. Run this same SQL statement with CFQUERY and the value from one of the other tables (web_trans) ends up replacing the value for the other columns called ZIP_CDE. The correct amount of columns are retruned just the values some how get corrupted.
Is this a known defect in cf8 is there a work around or update that resolves this issue that I may have missed?
Thank you for any insights.
