diff --git a/sql/sql_show.cc b/sql/sql_show.cc index 5963650f57ab005c8c147fb9cacde29cc4548d6b..a03e5e3eab17b80a0454fc327718c8abd439e9c7 100644 --- a/sql/sql_show.cc +++ b/sql/sql_show.cc @@ -7097,7 +7097,7 @@ static int get_schema_stat_record(THD *thd, TABLE_LIST *tables, uint j; for (j=0 ; j < key_info->user_defined_key_parts ; j++,key_part++) { - uint access= get_column_grant(thd, &tables->grant, db_name->str, + auto access= get_column_grant(thd, &tables->grant, db_name->str, table_name->str, key_part->field->field_name.str); @@ -7659,7 +7659,7 @@ static int get_schema_key_column_usage_record(THD *thd, TABLE_LIST *tables, uint j; for (j=0 ; j < key_info->user_defined_key_parts ; j++,key_part++) { - uint access= get_column_grant(thd, &tables->grant, db_name->str, + auto access= get_column_grant(thd, &tables->grant, db_name->str, table_name->str, key_part->field->field_name.str); @@ -7702,7 +7702,7 @@ static int get_schema_key_column_usage_record(THD *thd, TABLE_LIST *tables, { while ((r_info= it1++)) { - uint access= get_column_grant(thd, &tables->grant, db_name->str, + auto access= get_column_grant(thd, &tables->grant, db_name->str, table_name->str, r_info->str); if (!access)