summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVicențiu Ciorbaru <cvicentiu@gmail.com>2022-06-07 21:05:14 +0300
committerVicențiu Ciorbaru <cvicentiu@gmail.com>2022-06-12 17:24:12 +0300
commitd48480c692123473337a583dbec2b1dffa0ebcc0 (patch)
treecd68dac726a7daf65b73aaf0dec76f7cfe70c3dc
parent028accfa6ab49cfb6e9b9411f1e2ef81e2882257 (diff)
downloadmariadb-git-d48480c692123473337a583dbec2b1dffa0ebcc0.tar.gz
cleanup: make_table_name_list does not use LEX parameter
-rw-r--r--sql/sql_show.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_show.cc b/sql/sql_show.cc
index eded92984fb..a92992605cd 100644
--- a/sql/sql_show.cc
+++ b/sql/sql_show.cc
@@ -4513,7 +4513,7 @@ int schema_tables_add(THD *thd, Dynamic_array<LEX_CSTRING*> *files,
static int
make_table_name_list(THD *thd, Dynamic_array<LEX_CSTRING*> *table_names,
- LEX *lex, LOOKUP_FIELD_VALUES *lookup_field_vals,
+ LOOKUP_FIELD_VALUES *lookup_field_vals,
LEX_CSTRING *db_name)
{
char path[FN_REFLEN + 1];
@@ -5308,7 +5308,7 @@ int get_all_tables(THD *thd, TABLE_LIST *tables, COND *cond)
#endif
{
Dynamic_array<LEX_CSTRING*> table_names(PSI_INSTRUMENT_MEM);
- int res= make_table_name_list(thd, &table_names, lex,
+ int res= make_table_name_list(thd, &table_names,
&plan->lookup_field_vals, db_name);
if (unlikely(res == 2)) /* Not fatal error, continue */
continue;