如何使用queryExecute设置调试输出查询名称 [英] How to set debug output query name using queryExecute

查看:274
本文介绍了如何使用queryExecute设置调试输出查询名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有一种方法使用queryExecute()设置调试输出查询名称。

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

生成如下所示的调试输出:





更新CF 11u5的

调试输出将_queryname_var0替换为ExecuteQuery。看起来这个变数名称不会被覆写。



解决方案

我发布这个答案,所以我可以得到一些点。 ;)这是一个错误,纯粹和简单。我检查了调试模板,数据记录的名称不正确。我在这里提交了错误报告: https://bugbase.adobe.com/index.cfm ?event = bug& id = 3836702


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.

解决方案

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

这篇关于如何使用queryExecute设置调试输出查询名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆