[GODRIVER-1517] Extended JSON $date incorrectly parses integer literals Created: 03/Mar/20 Updated: 27/Oct/23 Resolved: 18/Mar/20 |
|
| Status: | Closed |
| Project: | Go Driver |
| Component/s: | JSON & ExtJSON |
| Affects Version/s: | 1.3.0 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | David Golden | Assignee: | Divjot Arora (Inactive) |
| Resolution: | Works as Designed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
The $date format requires a string or a $numberLong, but the driver incorrectly parses integer literals like the following:
N.B. floats do error:
|
| Comments |
| Comment by David Golden [ 18/Mar/20 ] |
|
I'm fine closing won't fix, as I now understand this is legacy Java driver behavior. |
| Comment by Divjot Arora (Inactive) [ 17/Mar/20 ] |
|
david.golden Is this due to the changes made in |