[GODRIVER-1191] Collection.Find() returns empty response Created: 05/Jul/19 Updated: 08/Jul/19 Resolved: 08/Jul/19 |
|
| Status: | Closed |
| Project: | Go Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Matthias Schild | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
windows/amd64, go1.12.5 |
||
| Description |
|
I've tried to fetch a collection with the Find method. After putting an empty document as filter, .Find() returns a cursor which is empty. Also no error occures somewhere. I followed the example from the README.md in the github repository. Tried following:
I made a minimal test code:
Can someone reproduce this bug? Or has anyone tipps where I can lookup for mistakes I possible made?
Greetings, Matthias Schild |
| Comments |
| Comment by Matthias Schild [ 07/Jul/19 ] |
|
Bug found, ticket can be closed. The Find function works fine. The bug was me wrongly understanding the defer function of go. So the bug was sitting in front of the screen. |
| Comment by Matthias Schild [ 05/Jul/19 ] |
|
Additional information:
|