tracker issue : CF-3909793

select a category, or use search below
(searches all categories and all time range)
Title:

output variable blank when using dbvarname

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/CannotReproduce

Reporter/Name(from Bugbase): Samson Gonzalez / Samson Gonzalez (Samson Gonzalez)

Created: 12/15/2014

Components: Database

Versions: 11.0

Failure Type: Data Loss

Found In Build/Fixed In Build: CF11_Final /

Priority/Frequency: Critical / Some users will encounter

Locale/System: English / Linux uBuntu 11.10

Vote Count: 2

Problem Description: 

When using dbvarname, out type parameters return blank values.

Steps to Reproduce: 

Create a (simple) procedure which returns output parameters.  

CREATE PROCEDURE getOutParam (
    @THEOUTPARAM        VARCHAR(100) = NULL OUTPUT
,   @THEINPARAM         VARCHAR(100)
)
AS
    
    SELECT @THEOUTPARAM = @THEINPARAM
GO


Use cfstoredproc to connect to it and cfprocparam type="out" .

<CFSTOREDPROC PROCEDURE="getOutParam" DATASOURCE="DSN_GOES_HERE" RETURNCODE="No">
	<CFPROCPARAM DBVARNAME="@THEOUTPARAM" CFSQLTYPE="CF_SQL_VARCHAR" TYPE="out" VARIABLE="theOutParameter">
	<CFPROCPARAM DBVARNAME="@THEINPARAM" VALUE="Hello from ColdFusion!" CFSQLTYPE="CF_SQL_VARCHAR" TYPE="in">
</CFSTOREDPROC>

<CFOUTPUT>#theOutParameter#</CFOUTPUT>
Actual Result:

theOutParameter is blank - it exists, but has no value.

Expected Result:

Page should output "Hello from ColdFusion!"


Any Workarounds:

Remove DBVARNAME from cfprocparam and the value is returned correctly

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3909793

External Customer Info:
External Company:  
External Customer Name: LongTimeCFer
External Customer Email:  
External Test Config: My Hardware and Environment details:



CF11 Update 3

JConnect 7, using jdbc4 driver

Sybase 15

Attachments:

Comments:

[subscribe]]]]]]]]]]]]]]]]]]
Vote by External U.
9370 | December 15, 2014 04:28:41 PM GMT
subscribing
Comment by External U.
9363 | January 06, 2015 04:54:35 AM GMT
subscribing...
Comment by External U.
9364 | January 06, 2015 12:28:42 PM GMT
I have tried the code snippets mentioned above with MS SQL Server 2012 and ColdFusion 11,0,03,292480 and it is working fine. Please let us know the information mentioned below: 1. ColdFusion build number. 2. Database server being used and Database driver
Comment by Nimit S.
9365 | January 08, 2015 05:02:39 AM GMT
Hi Nimit, The code also successfully outputs "Hello from ColdFusion!" for me w/ CF11 Update 3 (11,0,03,292480) w/ MSSQL 2012. So, it's working fine for me. I've noticed the "Test Configuration" section of tickets must not show for engineers. Here is that section from this ticket: CF11 Update 3 JConnect 7, using jdbc4 driver Sybase 15 Thanks!, -Aaron
Comment by External U.
9366 | January 08, 2015 06:27:55 AM GMT
I am getting the same error - won't be upgrading until this is fixed.
Vote by External U.
9371 | February 04, 2015 01:34:40 PM GMT
Hi, Are you still facing this issue? If yes, then please provide the requested information.
Comment by Nimit S.
9367 | May 07, 2015 01:34:27 AM GMT
I am closing this bug as I have not heard anything back. If you are still facing this issue, please comment on this bug so that I can work with you.
Comment by Nimit S.
9368 | June 07, 2015 10:33:30 PM GMT
Just curious if Adobe was able to test with Sybase, as that is the database platform that the original report was for. The fact everything is working with SQL Server doesn't mean it works on Sybase.
Comment by External U.
9369 | June 08, 2015 09:01:48 AM GMT