Hi there.
I have this query, which I'm going to use for a Group output.
When I use CFOUTPUT to get #content.id#, ColdFusion gives me this error:
... so I figure that the . notation is causing it a problem.
So then I change the states in the SQL to
And the MSAccess driver tells me that the statement is not supported!
Now I could get round the problem by just making sure that all the field names are unique across the tables, but I was curious if there was something else I could do to avoid it?
I have this query, which I'm going to use for a Group output.
Code:
<cfquery name="allContents" datasource="#request.DSN#">
SELECT contentType.id,
contentType.typeOfContent,
contentType.orderOfType,
contentType.active,
contentType.showHeading,
content.id,
content.title,
content.showBetweenDates,
content.showFrom,
content.showTo,
content.orderOfContent,
content.active,
content.showOnMenu
FROM contentType LEFT OUTER JOIN content ON contentType.id = content.contentTypeId
ORDER BY contentType.orderOfType, content.orderOfContent </cfquery>
When I use CFOUTPUT to get #content.id#, ColdFusion gives me this error:
Code:
coldfusion.runtime.UndefinedElementException: Element TYPEOFCONTENT is undefined in CONTENTTYPE
... so I figure that the . notation is causing it a problem.
So then I change the states in the SQL to
Code:
SELECT contentType.id as contentTypeId
And the MSAccess driver tells me that the statement is not supported!
Now I could get round the problem by just making sure that all the field names are unique across the tables, but I was curious if there was something else I could do to avoid it?