mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
All changes made on 10.1 for last 11 commits
This commit is contained in:
@@ -30,6 +30,10 @@
|
||||
uint GetJsonGrpSize(void);
|
||||
static int IsJson(UDF_ARGS *args, uint i);
|
||||
static PSZ MakePSZ(PGLOBAL g, UDF_ARGS *args, int i);
|
||||
static char *handle_item(UDF_INIT *initid, UDF_ARGS *args, char *result,
|
||||
unsigned long *res_length, char *is_null, char *error);
|
||||
static char *bin_handle_item(UDF_INIT *initid, UDF_ARGS *args, char *result,
|
||||
unsigned long *res_length, char *is_null, char *error);
|
||||
|
||||
static uint JsonGrpSize = 10;
|
||||
|
||||
@@ -1302,7 +1306,7 @@ static my_bool CalcLen(UDF_ARGS *args, my_bool obj,
|
||||
{
|
||||
char fn[_MAX_PATH];
|
||||
unsigned long i, k, m, n;
|
||||
long fl= 0, j = -1;
|
||||
long fl = 0, j = -1;
|
||||
|
||||
reslen = args->arg_count + 2;
|
||||
|
||||
@@ -2126,7 +2130,7 @@ my_bool json_object_nonull_init(UDF_INIT *initid, UDF_ARGS *args,
|
||||
char *json_object_nonull(UDF_INIT *initid, UDF_ARGS *args, char *result,
|
||||
unsigned long *res_length, char *, char *)
|
||||
{
|
||||
char *str= 0;
|
||||
char *str = NULL;
|
||||
PGLOBAL g = (PGLOBAL)initid->ptr;
|
||||
|
||||
if (!g->Xchk) {
|
||||
@@ -2699,7 +2703,7 @@ char *json_item_merge(UDF_INIT *initid, UDF_ARGS *args, char *result,
|
||||
} // endif Xchk
|
||||
|
||||
if (!CheckMemory(g, initid, args, 2, false, false, true)) {
|
||||
PJSON top= 0;
|
||||
PJSON top = NULL;
|
||||
PJVAL jvp;
|
||||
PJSON jsp[2] = {NULL, NULL};
|
||||
|
||||
@@ -4899,7 +4903,7 @@ char *bin_handle_item(UDF_INIT *initid, UDF_ARGS *args, char *result,
|
||||
my_bool b = true;
|
||||
PJSON jsp;
|
||||
PJSNX jsx;
|
||||
PJVAL jvp= 0;
|
||||
PJVAL jvp = NULL;
|
||||
PBSON bsp = NULL;
|
||||
PGLOBAL g = (PGLOBAL)initid->ptr;
|
||||
PGLOBAL gb = GetMemPtr(g, args, 0);
|
||||
|
Reference in New Issue
Block a user