[CXX-1090] Missleading Exception - update_one() Created: 14/Oct/16 Updated: 18/Oct/16 Resolved: 18/Oct/16 |
|
| Status: | Closed |
| Project: | C++ Driver |
| Component/s: | Implementation |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Armin Ball [X] | Assignee: | David Golden |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
Hey!
|
| Comments |
| Comment by David Golden [ 18/Oct/16 ] |
|
Great, I'm glad it makes sense now. I'll close this ticket. |
| Comment by Armin Ball [X] [ 18/Oct/16 ] |
|
Now, reading the error message again it makes sence. So the error message is telling me, your out of the $set scope. My reaction on this was: I do have a $set in my statement, whats so wrong with it? I was do busy to realize, that I'm out of the document. |
| Comment by David Golden [ 18/Oct/16 ] |
|
I'm a little confused by your update document as to which variation causes the problem. The commented out line would cause the error because you have "ended" and "$set" at the top level of the update document. But you have another "ended" line that isn't commented out that should be causing the same problem. (Is it?) The "ended" within the open/close document should be fine because it's nested. Can you please dump the update document that gives an error to JSON? E.g. bsoncxx::to_json(update_doc.view()) If you have an update document that works without error, can you dump that as well. Providing an SSCCE would help. Separately, when you say "the message is not helping", could you elaborate what you mean? |
| Comment by Armin Ball [X] [ 15/Oct/16 ] |
|
Versions: #define MONGOCXX_VERSION_MAJOR 3 Update_document:{ , |
| Comment by David Golden [ 15/Oct/16 ] |
|
Thanks for the report. Some follow up questions:
|