mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Merge branch '10.5' into 10.6
This commit is contained in:
@@ -3573,14 +3573,14 @@ char *bson_item_merge(UDF_INIT *initid, UDF_ARGS *args, char *result,
|
||||
if (!CheckMemory(g, initid, args, 2, false, false, true)) {
|
||||
JTYP type;
|
||||
BJNX bnx(g);
|
||||
PBVAL jvp, top = NULL;
|
||||
PBVAL jvp = NULL, top = NULL;
|
||||
PBVAL jsp[2] = {NULL, NULL};
|
||||
|
||||
for (int i = 0; i < 2; i++) {
|
||||
jvp = bnx.MakeValue(args, i, true);
|
||||
|
||||
if (i) {
|
||||
if (jvp->Type != type) {
|
||||
if (jvp && (jvp->Type != type)) {
|
||||
PUSH_WARNING("Argument types mismatch");
|
||||
goto fin;
|
||||
} // endif type
|
||||
@@ -5724,14 +5724,14 @@ char *bbin_item_merge(UDF_INIT *initid, UDF_ARGS *args, char *result,
|
||||
if (!CheckMemory(g, initid, args, 2, false, false, true)) {
|
||||
JTYP type;
|
||||
BJNX bnx(g);
|
||||
PBVAL jvp, top = NULL;
|
||||
PBVAL jvp = NULL, top = NULL;
|
||||
PBVAL jsp[2] = {NULL, NULL};
|
||||
|
||||
for (int i = 0; i < 2; i++) {
|
||||
if (i) {
|
||||
jvp = bnx.MakeValue(args, i, true);
|
||||
|
||||
if (jvp->Type != type) {
|
||||
if (jvp && (jvp->Type != type)) {
|
||||
PUSH_WARNING("Argument types mismatch");
|
||||
goto fin;
|
||||
} // endif type
|
||||
|
Reference in New Issue
Block a user