diff options
-rw-r--r-- | storage/connect/bsonudf.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/storage/connect/bsonudf.cpp b/storage/connect/bsonudf.cpp index f377e578399..0ef2f8ca9e6 100644 --- a/storage/connect/bsonudf.cpp +++ b/storage/connect/bsonudf.cpp @@ -3710,6 +3710,7 @@ char *bson_get_item(UDF_INIT *initid, UDF_ARGS *args, char *result, PUSH_WARNING("CheckMemory error"); goto fin; } else { + bnx.Reset(); jvp = bnx.MakeValue(args, 0, true); if (g->Mrr) { // First argument is a constant @@ -4055,6 +4056,7 @@ double bsonget_real(UDF_INIT *initid, UDF_ARGS *args, *is_null = 1; return 0.0; } else { + bnx.Reset(); jvp = bnx.MakeValue(args, 0); if ((p = bnx.GetString(jvp))) { |