[SERVER-793] mongo shell: display "floatApprox" only when approximating bson int/long Created: 19/Mar/10 Updated: 22/Mar/10 Resolved: 22/Mar/10 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Shell |
| Affects Version/s: | 1.3.4 |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | rphlx | Assignee: | Eliot Horowitz (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Participants: |
| Description |
|
Unlike 1.2.x, 1.3.4's shell displays { "floatApprox" } on every bson_long/bson_int field, even when the displayed value is exact. This makes the output larger and harder to read. Change such that { "floatApprox" }is only displayed when the double representation is actually inexact. IRC: . user_id is a bson_long.. |
| Comments |
| Comment by Eliot Horowitz (Inactive) [ 22/Mar/10 ] |
|
we can't do this as it will change the type of values. 1) insert long well try and make working with these in the shell nicer |