Query Of Queries runtime error: Table name was not found in memory

Query Of Queries runtime error: Table name was not found in memory

我在从应用程序变量引用查询时遇到冷融合错误。

Application.Shops 是应用程序变量,是另一个文件中引用的查询。

<cfquery name="qFilterLocations" dbtype="query">
    SELECT * FROM Application.Shops
</cfquery>

但是,我收到“执行数据库查询时出错。在内存中找不到名为 Application.Shops 的查询运行时 error.Table 的查询。名称拼写错误或 table 未定义。

我不明白这里有什么问题。

似乎 CF 正在以特定方式解释点符号(请参阅 https://helpx.adobe.com/coldfusion/developing-applications/accessing-and-using-data/using-query-of-queries/query-of-queries-user-guide.html)。我将按以下方式重组代码:

<cfset qShops = Application.Shops>
<cfquery name="qFilterLocations" dbtype="query">
    SELECT * FROM qShops
</cfquery>

跟进:我能够 运行 在 CF2018 中进行以下操作,没有任何问题。正如@SOS 所建议的,这可能是一个特定的环境问题。

<cfquery datasource="myDS" name="application.shops">
    select 1 from dual
</cfquery>

<cfdump var="#application.shops#">

<cfquery dbtype="query" name="qResult">
    select * from application.shops
</cfquery>

<cfdump var="#qResult#">

两个查询结果都被转储,没有错误。