[CDRIVER-154] Appending empty string key with bson_append_element Created: 26/Jun/12 Updated: 03/May/17 Resolved: 01/Aug/12 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Morten Kvistgaard | Assignee: | Gary Murakami |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
The following will create an error:
The "" will cause it to fall through to the "not null" part ... and create an error. |
| Comments |
| Comment by Gary Murakami [ 01/Aug/12 ] |
|
I'm resolving this, please reopen with details if there is any remaining issue. |
| Comment by auto [ 31/Jul/12 ] |
|
Author: {u'date': u'2012-07-31T04:13:49-07:00', u'email': u'gary.murakami@10gen.com', u'name': u'Gary Murakami'}Message: |
| Comment by auto [ 30/Jul/12 ] |
|
Author: {u'date': u'2012-07-30T14:04:37-07:00', u'email': u'gary.murakami@10gen.com', u'name': u'Gary Murakami'}Message: |
| Comment by Gary Murakami [ 30/Jul/12 ] |
|
Morten: An empty string is valid for a field name. In my tests, I don't experience an "error" when passing name_or_null parameter with value "". Thanks, -Gary |