diff options
Diffstat (limited to 'src/bson/bson.c')
-rw-r--r-- | src/bson/bson.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bson/bson.c b/src/bson/bson.c index 42e01eb..64069e2 100644 --- a/src/bson/bson.c +++ b/src/bson/bson.c @@ -1424,9 +1424,11 @@ int bson_append_field_from_iterator2(const char *key, const bson_iterator *from, } switch (t) { case BSON_STRING: - case BSON_SYMBOL: bson_append_string(into, key, bson_iterator_string(from)); break; + case BSON_SYMBOL: + bson_append_symbol(into, key, bson_iterator_string(from)); + break; case BSON_CODE: bson_append_code(into, key, bson_iterator_code(from)); break; |