How to set debug output query name using queryExecute

最后都变了- 提交于 2019-12-12 10:59:09

问题


I'd like to find out if there is a way to set the debug output query name using queryExecute().

    <cfscript>
    qryTest = queryExecute('SELECT * FROM art', {}, {datasource="cfartgallery"});
    writeDump(var="#qryTest#");
    </cfscript>

Generates debug output like this:

UPDATE for CF 11u5, the debug output replaces "_queryname_var0" with "ExecuteQuery". It looks like this variable name is safe from being over-written.


回答1:


I'm posting this as an answer so I can maybe get some points. ;) It is a bug, pure and simple. I checked the Debugging template and the data is recorded with the incorrect name. I've filed a bug report here: https://bugbase.adobe.com/index.cfm?event=bug&id=3836702



来源:https://stackoverflow.com/questions/26254498/how-to-set-debug-output-query-name-using-queryexecute

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!