CFLDAP 名称属性...不能使用结构?

CFLDAP name attribute...can't use struct?

这是在 CF11/2016。当我尝试在 CFLDAP 查询中为 "name" 属性使用结构变量(即 local.o)时,它会引发错误:

Attribute validation error for tag CFLDAP.

The value of the attribute name, which is currently local.o, is invalid.  

local["o"] 也不起作用。我做错了什么?

您可以通过其他方式实现。

<cffunction>
<cfset var ManagerSelect = ''>  <!--- keeps the variable local to the function --->
<cfldap action = "query" name = "ManagerSelect">
<cfset local.OtherVariable = "something else">
etc
</cffunction>

请注意,<cfset local = StructNew()> 行在函数中是不必要的。