[GODRIVER-2323] updateone function issue Created: 26/Feb/22 Updated: 28/Oct/23 Resolved: 11/Apr/22 |
|
| Status: | Closed |
| Project: | Go Driver |
| Component/s: | None |
| Affects Version/s: | 1.7.5, 1.8.1, 1.8.2, 1.8.3 |
| Fix Version/s: | 1.9.1 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Sachin Sanjay | Assignee: | Matt Dale |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
| Comments |
| Comment by Matt Dale [ 11/Apr/22 ] |
|
Hey sachinhydratech@gmail.com, I just merged a change to add support for int32/int64 to UpdateOne (and all numeric fields in all other CRUD operations). The fix will be included with the next patch release (v1.9.1), which is scheduled for May 3. I'm closing this ticket for now, please respond here if you have any further questions. Thanks! |
| Comment by Githook User [ 11/Apr/22 ] |
|
Author: {'name': 'Matt Dale', 'email': '9760375+matthewdale@users.noreply.github.com', 'username': 'matthewdale'}Message: |
| Comment by Githook User [ 11/Apr/22 ] |
|
Author: {'name': 'Matt Dale', 'email': '9760375+matthewdale@users.noreply.github.com', 'username': 'matthewdale'}Message: |
| Comment by Sachin Sanjay [ 08/Mar/22 ] |
|
Hey Matt, As requested I did more research on the server-side and figured out it is hosted on Azure Cosmos DB which by default runs document DB I've failed to notice this since it was working with the prior version of golang MongoDB driver 1.7.5. I think ever since the driver updates the update function breaks. I apologize for the misunderstanding, thanks for the help |
| Comment by Matt Dale [ 07/Mar/22 ] |
|
Hey sachinhydratech@gmail.com thanks for filing a ticket! It's unusual that the server response field "n" would be a 64-bit integer, as drivers expect that field to always be a 32-bit integer. I have a few questions to help get to the cause of the issue:
|