Bug #117764 DbDocImpl does not preserve document as inserted
Submitted: 20 Mar 17:46 Modified: 24 Apr 12:28
Reporter: Brandon Burchett Email Updates:
Status: No Feedback Impact on me:
None 
Category:Connector / J Severity:S3 (Non-critical)
Version:9.2 OS:Any
Assigned to: MySQL Verification Team CPU Architecture:Any

[20 Mar 17:46] Brandon Burchett
Description:
When writing a document using the X Dev API the order of the keys is changed.

This is due to DbDocImpl extends TreeMap, which by default will sort keys alphabetically. This could be remedied by extending LinkedHashMap.

How to repeat:
Write a json to the database and then retrieve it from the database then compare the original JSON to the toString version of the DBDoc.

Suggested fix:
This could be remedied by extending LinkedHashMap instead of TreeMap.
[24 Mar 12:28] MySQL Verification Team
Hi,

Would you be so kind to write a short example to reproduce this.
[25 Apr 1:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".