Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replaced working with bson utf8 string inside db_mongodb_convert_bson function #1508

Closed
wants to merge 3 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/modules/db_mongodb/mongodb_dbase.c
Expand Up @@ -631,10 +631,11 @@ static int db_mongodb_convert_bson(const db1_con_t* _h, db1_res_t* _r,
(uint32_t*)&VAL_BLOB(dval).len, (const uint8_t**)&VAL_BLOB(dval).s);
break;

case BSON_TYPE_UTF8:
case BSON_TYPE_UTF8: {
char* rstring = (char*)bson_iter_utf8 (piter, &i32tmp);
db_str2val(DB1_STRING, dval, rstring, i32tmp, 1);
break;
}

case BSON_TYPE_OID:
break;
Expand Down