diff options
Diffstat (limited to 'sql/session_tracker.cc')
-rw-r--r-- | sql/session_tracker.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sql/session_tracker.cc b/sql/session_tracker.cc index 3272d2a41f0..03d4b150434 100644 --- a/sql/session_tracker.cc +++ b/sql/session_tracker.cc @@ -419,6 +419,7 @@ bool Session_sysvars_tracker::vars_list::parse_var_list(THD *thd, { sys_var *svar; LEX_STRING var; + uint not_used; lasts= (char *) memchr(token, separator, rest); @@ -432,7 +433,7 @@ bool Session_sysvars_tracker::vars_list::parse_var_list(THD *thd, var.length= rest; /* Remove leading/trailing whitespace. */ - trim_whitespace(char_set, &var); + trim_whitespace(char_set, &var, ¬_used); if(!strcmp(var.str,(const char *)"*")) { @@ -500,6 +501,7 @@ bool Session_sysvars_tracker::check_var_list(THD *thd, for (;;) { LEX_STRING var; + uint not_used; lasts= (char *) memchr(token, separator, rest); @@ -513,7 +515,7 @@ bool Session_sysvars_tracker::check_var_list(THD *thd, var.length= rest; /* Remove leading/trailing whitespace. */ - trim_whitespace(char_set, &var); + trim_whitespace(char_set, &var, ¬_used); if(!strcmp(var.str,(const char *)"*") && !find_sys_var_ex(thd, var.str, var.length, throw_error, true)) |