mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
- Fix bug causing bnx base wrong after CheckMemory
Add negative array indexes starting from the last modified: storage/connect/bson.cpp modified: storage/connect/bsonudf.cpp modified: storage/connect/json.cpp
This commit is contained in:
@@ -3707,6 +3707,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
|
||||
@@ -4052,6 +4053,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))) {
|
||||
|
Reference in New Issue
Block a user