Title:
Datatype preservation not working with json serialization in row and column format
| View in TrackerStatus/Resolution/Reason: Closed/Withdrawn/NotABug
Reporter/Name(from Bugbase): Deepak Kumar / Deepak Kumar (Deepak Kumar)
Created: 04/21/2014
Components: Language, Serialization
Versions: 11.0
Failure Type: Data Corruption
Found In Build/Fixed In Build: PublicBeta /
Priority/Frequency: Critical / Most users will encounter
Locale/System: English / Win Mobile 6.5
Vote Count: 0
Problem Description:
In the CF11 docs it is mentioned that "Starting from ColdFusion Splendor, the data type is preserved during the code execution time for Query and CFCs." It is working fine when we serialize a query object using the new "struct" format but it is not working for "row" and "column" format.
Steps to Reproduce:
1. Create a table with two fields Name[varchar(50)] and Salary[varchar(50)]. Insert some data to this table with salary as numeric values.
2. Now when you will serialize the query output using "row" or "column" format it will convert the salary column data to numeric
though it is varchar in db. But it is working fine for "struct" format.
Actual Result:
Salary data is coming as numeric.
Expected Result:
Salary data should come as string as it a varchar type field in database.
Any Workarounds:
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3746091
External Customer Info:
External Company:
External Customer Name: Deepak Kumar Padhy
External Customer Email:
External Test Config: Database:SQL Server 2008
ColdFusion Version: 11.0
OS: Windows7 32 bit
WebServer: IIS
Attachments:
- April 21, 2014 00:00:00: 1_bug2.PNG
Comments: