mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Manual merge from mysql-trunk-merge.
This commit is contained in:
@ -2065,7 +2065,7 @@ static int check_func_set(THD *thd, struct st_mysql_sys_var *var,
|
||||
const char *strvalue= "NULL", *str;
|
||||
TYPELIB *typelib;
|
||||
ulonglong result;
|
||||
uint error_len;
|
||||
uint error_len= 0; // init as only set on error
|
||||
bool not_used;
|
||||
int length;
|
||||
|
||||
@ -2664,7 +2664,9 @@ uchar* sys_var_pluginvar::value_ptr(THD *thd, enum_var_type type,
|
||||
{
|
||||
if (!(value & mask))
|
||||
continue;
|
||||
str.append(typelib->type_names[i], typelib->type_lengths[i]);
|
||||
str.append(typelib->type_names[i], typelib->type_lengths
|
||||
? typelib->type_lengths[i]
|
||||
: strlen(typelib->type_names[i]));
|
||||
str.append(',');
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user