[SERVER-20390] Updating just the type for a numeric field does not work Created: 14/Sep/15 Updated: 09/Dec/15 Resolved: 15/Sep/15 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Write Ops |
| Affects Version/s: | 3.0.3, 3.0.6 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Joakim Nordling | Assignee: | Sam Kleinman (Inactive) |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Seen on CentOS 7.1, both in 3.0.3 and 3.0.6. Not tested on anything else. |
||
| Issue Links: |
|
|||||||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | |||||||||||||||||||||||||
| Operating System: | Linux | |||||||||||||||||||||||||
| Steps To Reproduce: | 1. Let's store the value 0 as double and verify it indeed is a double:
2. Try to replace it with value 0 as a 32-bit integer and verify it's still a double:
3. Change the number to 1 and make sure it's a 32-bit integer after this:
4. Now let's change the value successfully to 0 as a 32-bit integer:
|
|||||||||||||||||||||||||
| Participants: | ||||||||||||||||||||||||||
| Description |
|
If you store the value 0 as a double in a field, you can't change the value 0 to a 32 bit integer without switching the value to something else in between. |
| Comments |
| Comment by Joakim Nordling [ 15/Sep/15 ] |
|
Thanks Stephen, I upvoted and am watching the Regards, |
| Comment by Stennie Steneker (Inactive) [ 15/Sep/15 ] |
|
Hi Joakim, Thanks for reporting. This is a duplicate of Regards, |