Status/Resolution/Reason: Closed/Withdrawn/NotABug
Reporter/Name(from Bugbase): Adam Cameron / Adam Cameron (Adam Cameron)
Created: 02/24/2014
Components: Language
Versions: 11.0
Failure Type: Data Loss
Found In Build/Fixed In Build: PublicBeta /
Priority/Frequency: Major / Most users will encounter
Locale/System: English / Platforms All
Vote Count: 0
See http://cfmlblog.adamcameron.me/2014/02/coldfusion-11-query-column-types.html and http://cfmlblog.adamcameron.me/2013/06/coldfusion-vs-json-how-to-make.html
You're claiming (https://wikidocs.adobe.com/wiki/display/coldfusionen/ColdFusion+Language+Enhancements#ColdFusionLanguageEnhancements-Datatypepreservation) "SerializeJSON considers datatypes defined in the database for serialization", but that is not true. You are not.
I suggest you alter the JSON schema you use for serialising queries to be along these lines:
{
"COLUMNS":["ID","MI"],
"COLUMNTYPES":["integer","nvarchar"],
"DATA":[
[18,"R?hina"],[19,"R?t?"],[20,"R?apa"],[21,"R?pare"],[22,"R?mere"],[23,"R?horoi"],[24,"R?tapu"]
]
}
Note the COLUMNTYPES. Then you actually WILL be doing something sensible with the data types.
But you currently are NOT doing anything sensible here, so you should stop claiming that you are.
--
Adam
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3712823
External Customer Info:
External Company:
External Customer Name: Adam Cameron.
External Customer Email:
External Test Config: My Hardware and Environment details:
Attachments:
Comments: