mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 03:52:35 +01:00
cleanup: sql_show.cc
This commit is contained in:
parent
d508ef7898
commit
d281faf992
1 changed files with 0 additions and 11 deletions
|
@ -2900,7 +2900,6 @@ void remove_status_vars(SHOW_VAR *list)
|
|||
}
|
||||
|
||||
|
||||
|
||||
static bool show_status_array(THD *thd, const char *wild,
|
||||
SHOW_VAR *variables,
|
||||
enum enum_var_type value_type,
|
||||
|
@ -2915,7 +2914,6 @@ static bool show_status_array(THD *thd, const char *wild,
|
|||
/* the variable name should not be longer than 64 characters */
|
||||
char name_buffer[64];
|
||||
int len;
|
||||
LEX_STRING null_lex_str;
|
||||
SHOW_VAR tmp, *var;
|
||||
enum_check_fields save_count_cuted_fields= thd->count_cuted_fields;
|
||||
bool res= FALSE;
|
||||
|
@ -2923,8 +2921,6 @@ static bool show_status_array(THD *thd, const char *wild,
|
|||
DBUG_ENTER("show_status_array");
|
||||
|
||||
thd->count_cuted_fields= CHECK_FIELD_WARN;
|
||||
null_lex_str.str= 0; // For sys_var->value_ptr()
|
||||
null_lex_str.length= 0;
|
||||
|
||||
prefix_end=strnmov(name_buffer, prefix, sizeof(name_buffer)-1);
|
||||
if (*prefix)
|
||||
|
@ -3095,13 +3091,6 @@ static bool show_status_array(THD *thd, const char *wild,
|
|||
if (!(pos= *(char**) value))
|
||||
pos= "";
|
||||
|
||||
DBUG_EXECUTE_IF("alter_server_version_str",
|
||||
if (!my_strcasecmp(system_charset_info,
|
||||
variables->name,
|
||||
"version")) {
|
||||
pos= "some-other-version";
|
||||
});
|
||||
|
||||
end= strend(pos);
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue