[CDRIVER-482] mongoc_cursor_clone() ignores fields Created: 10/Dec/14 Updated: 19/Oct/16 Resolved: 27/Jan/15 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | None |
| Affects Version/s: | 1.0.2 |
| Fix Version/s: | 1.1.0 |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Oz Tiram | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | driver, query | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Debian GNU Linux, 7.0, AMD 64Bit |
||
| Description |
|
I have the following function: mongoc_cursor_t * mongoc_cursor_t *cursor; I call this function with: cursor = get_cur(host, database, collection_name, &collection_p, &client_p); The first time I call curser next, it returns the fields without _id. mongoc_cursor_t *cursor_copy; And now when I do: while (mongoc_cursor_next (cursor_copy, &doc)) { I see the filed `_id` returned. I expected the cursor to maintain the query and field properties, e.g. Is this a bug or intended behaviour of mongoc_cursor_clone? |
| Comments |
| Comment by Githook User [ 27/Jan/15 ] |
|
Author: {u'username': u'hanumantmk', u'name': u'Jason Carey (hanumantmk)', u'email': u'jcarey@argv.me'}Message: Correctly propogate the fields parameter in copied cursors. We copied |