[JAVA-1272] Support reading MongoDB Extended JSON containing $numberLong Created: 11/Jun/14 Updated: 18/Jan/22 Resolved: 18/Jun/14 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | JSON |
| Affects Version/s: | None |
| Fix Version/s: | 2.12.3 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | David Golub | Assignee: | Ross Lawley |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Description |
|
MongoDB 2.6 introduced support for the NumberLong data type in MongoDB Extended JSON using $numberLong. However, the Java driver does not yet support it. If you try to insert a document that makes use of $numberLong, you'll get an error saying that field names starting with dollar signs are not allowed. This should be a matter of adding a couple of lines to JSONCallback.java. |
| Comments |
| Comment by Githook User [ 30/Jan/15 ] |
|
Author: {u'username': u'rozza', u'name': u'Ross Lawley', u'email': u'ross.lawley@gmail.com'}Message: Ported support for $numberLong to 3.0.x Refs: |
| Comment by Githook User [ 23/Jul/14 ] |
|
Author: {u'username': u'rozza', u'name': u'Ross Lawley', u'email': u'ross.lawley@gmail.com'}Message: Ported support for $numberLong to 3.0.x Refs: |
| Comment by Githook User [ 25/Jun/14 ] |
|
Author: {u'username': u'rozza', u'name': u'Ross Lawley', u'email': u'ross.lawley@gmail.com'}Message: Added support for reading $numberLong in extended JSON
|
| Comment by Githook User [ 18/Jun/14 ] |
|
Author: {u'username': u'rozza', u'name': u'Ross Lawley', u'email': u'ross.lawley@gmail.com'}Message: Added support for reading $numberLong in extended JSON
|
| Comment by David Golub [ 11/Jun/14 ] |
|
See https://github.com/10gen/mms/commit/ae176a15399d4820f54c32a8fb8cc9d50e01ed36 for a temporary workaround I just added to MMS to address the lack of support for $numberLong. It should be fairly straightforward to adapt this for insertion into JSONCallback in the Java driver source code. |