Title:
Query of Queries does not maintain original/parent query datatype for cf_sql_datatype nvarchar
| View in TrackerStatus/Resolution/Reason: To Fix/Fixed/BugVerified
Reporter/Name(from Bugbase): Unknown Unknown / Unknown Unknown (Unknown Unknown)
Created: 08/17/2014
Components: Database
Versions: 10.0
Failure Type:
Found In Build/Fixed In Build: Final /
Priority/Frequency: Major / All users will encounter
Locale/System: English / Win All
Vote Count: 1
Related Bugs:
CF-4007420 - Similar to
Problem Description:
When performing a Query of Queries statement, the original datatype from the original/parent query is not maintained. If the original query contains a column with a cf_sql_datatype attribute of nvarchar, then this is not maintained after the recordset is returned. So if you now wish to do a Query of Queries statement that includes a string comparison WHERE statement such as: ".... WHERE Column1 = <cfqueryparam value="SomeValue" cf_sql_datatype="nvarchar"/>" then it returns an error of "PreparedStatement.setNString(int,java.lang.String)" even though "Column1" has a datatype of nvarchar in the database. This is because the recordset returned by ColdFusion has changed it from an nvarchar to normal varchar datatype.
Steps to Reproduce:
Actual Result:
Expected Result:
Any Workarounds:
The only workaround is to specify varchar as the cf_sql_datatype value after the recordset is returned (when executing a Query of Queries statement)
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3806744
External Customer Info:
External Company:
External Customer Name: solaced
External Customer Email:
External Test Config: My Hardware and Environment details:
Windows 7 Ultimate 64bit / Windows Server 2008 R2
IIS 7.5
ColdFusion 10 Developer and Enterprise
Attachments:
Comments: