mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Merge branch '10.6' into 10.7
This commit is contained in:
@@ -4911,7 +4911,7 @@ char *bbin_make_array(UDF_INIT *initid, UDF_ARGS *args, char *result,
|
||||
} // endfor i
|
||||
|
||||
if ((bsp = BbinAlloc(bnx.G, initid->max_length, arp))) {
|
||||
strcat(bsp->Msg, " array");
|
||||
safe_strcat(bsp->Msg, sizeof(bsp->Msg), " array");
|
||||
|
||||
// Keep result of constant function
|
||||
g->Xchk = (initid->const_item) ? bsp : NULL;
|
||||
@@ -5109,8 +5109,9 @@ char *bbin_array_grp(UDF_INIT *initid, UDF_ARGS *, char *result,
|
||||
PUSH_WARNING("Result truncated to json_grp_size values");
|
||||
|
||||
if (arp)
|
||||
if ((bsp = BbinAlloc(g, initid->max_length, arp)))
|
||||
strcat(bsp->Msg, " array");
|
||||
if ((bsp = BbinAlloc(g, initid->max_length, arp))) {
|
||||
safe_strcat(bsp->Msg, sizeof(bsp->Msg), " array");
|
||||
}
|
||||
|
||||
if (!bsp) {
|
||||
*res_length = 0;
|
||||
@@ -5156,8 +5157,9 @@ char *bbin_object_grp(UDF_INIT *initid, UDF_ARGS *, char *result,
|
||||
PUSH_WARNING("Result truncated to json_grp_size values");
|
||||
|
||||
if (bop)
|
||||
if ((bsp = BbinAlloc(g, initid->max_length, bop)))
|
||||
strcat(bsp->Msg, " object");
|
||||
if ((bsp = BbinAlloc(g, initid->max_length, bop))) {
|
||||
safe_strcat(bsp->Msg, sizeof(bsp->Msg), " object");
|
||||
}
|
||||
|
||||
if (!bsp) {
|
||||
*res_length = 0;
|
||||
@@ -5201,7 +5203,7 @@ char *bbin_make_object(UDF_INIT *initid, UDF_ARGS *args, char *result,
|
||||
bnx.SetKeyValue(objp, bnx.MakeValue(args, i), bnx.MakeKey(args, i));
|
||||
|
||||
if ((bsp = BbinAlloc(bnx.G, initid->max_length, objp))) {
|
||||
strcat(bsp->Msg, " object");
|
||||
safe_strcat(bsp->Msg, sizeof(bsp->Msg), " object");
|
||||
|
||||
// Keep result of constant function
|
||||
g->Xchk = (initid->const_item) ? bsp : NULL;
|
||||
@@ -5256,7 +5258,7 @@ char *bbin_object_nonull(UDF_INIT *initid, UDF_ARGS *args, char *result,
|
||||
bnx.SetKeyValue(objp, jvp, bnx.MakeKey(args, i));
|
||||
|
||||
if ((bsp = BbinAlloc(bnx.G, initid->max_length, objp))) {
|
||||
strcat(bsp->Msg, " object");
|
||||
safe_strcat(bsp->Msg, sizeof(bsp->Msg), " object");
|
||||
|
||||
// Keep result of constant function
|
||||
g->Xchk = (initid->const_item) ? bsp : NULL;
|
||||
@@ -5315,7 +5317,7 @@ char *bbin_object_key(UDF_INIT *initid, UDF_ARGS *args, char *result,
|
||||
bnx.SetKeyValue(objp, bnx.MakeValue(args, i + 1), MakePSZ(g, args, i));
|
||||
|
||||
if ((bsp = BbinAlloc(bnx.G, initid->max_length, objp))) {
|
||||
strcat(bsp->Msg, " object");
|
||||
safe_strcat(bsp->Msg, sizeof(bsp->Msg), " object");
|
||||
|
||||
// Keep result of constant function
|
||||
g->Xchk = (initid->const_item) ? bsp : NULL;
|
||||
@@ -6078,7 +6080,7 @@ char *bbin_file(UDF_INIT *initid, UDF_ARGS *args, char *result,
|
||||
// pretty = pty;
|
||||
|
||||
if ((bsp = BbinAlloc(bnx.G, len, jsp))) {
|
||||
strcat(bsp->Msg, " file");
|
||||
safe_strcat(bsp->Msg, sizeof(bsp->Msg), " file");
|
||||
bsp->Filename = fn;
|
||||
bsp->Pretty = pretty;
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user