diff options
author | Tyutyunkov Vyacheslav <tve@softmotions.com> | 2015-08-05 12:48:55 +0600 |
---|---|---|
committer | Tyutyunkov Vyacheslav <tve@softmotions.com> | 2015-08-05 12:48:55 +0600 |
commit | d5d1356e6bf460ff48e23eeb73fdc91df891df05 (patch) | |
tree | 7d79ad4e5eef64133b8ffdf8941afe85cb09b21b /src/bson/bson.c | |
parent | 2a6024fb20980ed9191d3e284d8d0458fef61e60 (diff) | |
parent | aa2a3483acd0c5bcf22a34dde0e96f82385766dc (diff) | |
download | ejdb-d5d1356e6bf460ff48e23eeb73fdc91df891df05.tar.gz ejdb-d5d1356e6bf460ff48e23eeb73fdc91df891df05.tar.bz2 ejdb-d5d1356e6bf460ff48e23eeb73fdc91df891df05.zip |
#156 - merge & test
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; |