0
Explorer
,
/t5/coldfusion-discussions/query-of-query-order-by-column-index-giving-error-in-cf-2021/td-p/12435383
Oct 06, 2021
Oct 06, 2021
Copy link to clipboard
Copied
I am getting error when I am using column index inside the Query of Query SQL. This is happening on Coldfusion 2021 and seems fine w/ Coldfusion 2016. Is this bug w/ Coldfusion 2021? THANKS!
<cffunction name="test" access="public">
<cfquery datasource="myDS" name="local.getData" >
SELECT email, first_name, last_name
FROM users
</cfquery>
<cfquery dbtype="query" name="local.testQrySet">
select email, first_name, last_name
from getData
where id=<cfqueryparam value="1919" cfsqltype="cf_sql_numeric" />
order by 2 asc
</cfquery>
<cfdump var="#local.testQrySet#" />
</cffunction>
<cfset test() />
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
1 Correct answer
Adobe Employee
,
Oct 06, 2021
Oct 06, 2021
Hello Joseph,
There is a fix available for this issue, please send an Email to cfsup@adobe.com for the fix
Thanks & Regards
Ravi
Adobe Employee
,
/t5/coldfusion-discussions/query-of-query-order-by-column-index-giving-error-in-cf-2021/m-p/12435671#M190105
Oct 06, 2021
Oct 06, 2021
Copy link to clipboard
Copied
Hello Joseph,
There is a fix available for this issue, please send an Email to cfsup@adobe.com for the fix
Thanks & Regards
Ravi
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
joseph.yan
AUTHOR
Explorer
,
LATEST
/t5/coldfusion-discussions/query-of-query-order-by-column-index-giving-error-in-cf-2021/m-p/12435745#M190106
Oct 06, 2021
Oct 06, 2021
Copy link to clipboard
Copied
Allright. Thank you so much Ravi.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

