8

我有几个 SQL Server 2008 存储过程。我通过 cfstoredproc 给他们打电话。我在 4 月 17 日运行 CF 服务器更新后,CF 不再获得结果。这是其中一个调用:

<cfstoredproc procedure="proc_xxxx" datasource="#application.dsn#" debug="yes" returnCode="yes">
<cfprocparam type="in" cfsqltype="cf_sql_integer"  dbvarname="@myID" value="#arguments.myID#">
<cfprocparam type="in" cfsqltype="cf_sql_varchar"  dbvarname="@EmailAddr" value="#trim(arguments.emailAddress)#"  null="#not len(arguments.emailAddress)#">
<cfprocparam type="out" cfsqltype="cf_sql_integer" dbVarName="@NewUserID"  variable="newUserID" > 
<cfprocresult name="qryUser">   
</cfstoredproc>

<cfoutput>newUserID = #newUserID#</cfoutput>

我收到一个未定义的 newUserID 错误。同样,在更新 5 之前,一切都运行良好。

如果我在 SSMS 中调用存储的过程,一切正常。当我在数据库上看到我的更新和插入时,cfstoredproc 工作。但是,它根本不会再返回任何结果。返回码为 0,正如我提到的,一切运行都没有任何错误。

我试过了 :

 <cfprocresult resultset="1" name="qryResult">

没有运气。有任何想法吗?提前致谢。

4

1 回答 1

7

在与 Adob​​e 支持来回发送了很多电子邮件后,他们告诉我取消选中:在 CF 管理员中启用请求调试输出。

完成后,参数按预期返回:

 <cfprocparam type="out" cfsqltype="cf_sql_integer" dbvarname="@NewUserID" variable="newUserID"  > 

不用说,我们需要本地和开发服务器上的调试输出。我不相信这个错误应该被标记为已修复,但我猜他们正在这样做。

希望它可以帮助遇到同样问题的其他人。

2015 年 5 月 1 日编辑:现在有一个修复程序。

  1. 下载此修补程序文件 [ hf1100-3971083.jar ]。
  2. 将此文件放在 /cfusion/lib/updates 文件夹中。
  3. 重新启动 ColdFusion 应用程序服务。

繁荣,它的工作原理!

于 2015-04-30T14:08:18.463 回答