mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Merge branch '10.4' into 10.5
This commit is contained in:
@@ -74,21 +74,20 @@ int spider_udf_set_copy_tables_param_default(
|
||||
DBUG_RETURN(0);
|
||||
}
|
||||
|
||||
#define SPIDER_PARAM_STR_LEN(name) name ## _length
|
||||
#define SPIDER_PARAM_STR(title_name, param_name) \
|
||||
if (!strncasecmp(parse.start_title, title_name, title_length)) \
|
||||
{ \
|
||||
DBUG_PRINT("info",("spider " title_name " start")); \
|
||||
if (!copy_tables->param_name) \
|
||||
{ \
|
||||
#define SPIDER_PARAM_LEN(name) name ## _length
|
||||
#define SPIDER_PARAM_STR(title_name, param_name) \
|
||||
if (!strncasecmp(parse.start_title, title_name, title_length)) \
|
||||
{ \
|
||||
DBUG_PRINT("info",("spider " title_name " start")); \
|
||||
if (!copy_tables->param_name) \
|
||||
{ \
|
||||
if ((copy_tables->param_name = spider_create_string(parse.start_value, \
|
||||
value_length))) \
|
||||
copy_tables->SPIDER_PARAM_STR_LEN(param_name) = \
|
||||
strlen(copy_tables->param_name); \
|
||||
else { \
|
||||
error_num= parse.fail(true); \
|
||||
goto error; \
|
||||
} \
|
||||
copy_tables->SPIDER_PARAM_LEN(param_name) = strlen(copy_tables->param_name); \
|
||||
else { \
|
||||
error_num= parse.fail(true); \
|
||||
goto error; \
|
||||
} \
|
||||
DBUG_PRINT("info",("spider " title_name "=%s", copy_tables->param_name)); \
|
||||
} \
|
||||
break; \
|
||||
|
Reference in New Issue
Block a user