From 5797432283fee961eed5a0cf6e9310861ddbe8cd Mon Sep 17 00:00:00 2001 From: adam Date: Fri, 2 Aug 2013 01:33:39 +0700 Subject: [PATCH] #88 minors --- tcejdb/bson.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tcejdb/bson.c b/tcejdb/bson.c index 93f7016..139484c 100644 --- a/tcejdb/bson.c +++ b/tcejdb/bson.c @@ -1454,7 +1454,7 @@ static bson_visitor_cmd_t _bson_merge3_visitor(const char *ipath, int ipathlen, const void *buf; int bufsz; bson_type bt = bson_iterator_type(it); - buf = (TCMAPRNUM(ctx->mfields) == 0) ? NULL : tcmapget(ctx->mfields, ipath, ipathlen, &bufsz); + buf = (TCMAPRNUM(ctx->mfields) == 0 || after) ? NULL : tcmapget(ctx->mfields, ipath, ipathlen, &bufsz); if (buf) { bson_iterator it2; bson_iterator_from_buffer(&it2, ctx->bsdata2); -- 2.7.4