[CXX-809] Investigate SO question about handling empty arrays Created: 11/Jan/16 Updated: 14/Jan/16 Resolved: 14/Jan/16 |
|
| Status: | Closed |
| Project: | C++ Driver |
| Component/s: | None |
| Affects Version/s: | 3.0.0-rc0 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Samantha Ritter (Inactive) | Assignee: | Samantha Ritter (Inactive) |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Epic Link: | C++11 Driver MongoDB 3.2 | ||||||||
| Description |
|
In May, a user ran into an issue with handling empty arrays. We should investigate whether this is still an issue, and respond to the original stack overflow post accordingly. http://stackoverflow.com/questions/30096041/arrays-in-mongo-c11-driver-new-driver |
| Comments |
| Comment by Andrew Morrow (Inactive) [ 13/Jan/16 ] |
|
It looks like that test came in with https://github.com/mongodb/mongo-cxx-driver/commit/2de12b10c6d15a87501653d2d56b942ed18116b5, which looks like it was exactly about the problem described. The SO question was in May, the fix was in December. I think we can close this ticket as a dup of |
| Comment by Samantha Ritter (Inactive) [ 11/Jan/16 ] |
|
There is an existing test for iteration over empty arrays: https://github.com/mongodb/mongo-cxx-driver/blob/5922e69b407b995528c4efe9cae10b981ad799b2/src/bsoncxx/test/bson_get_values.cpp#L219-L227 |