Skip to content

Commit

Permalink
sql_show: Fix narrowing conversion from the get_column_grant return r…
Browse files Browse the repository at this point in the history
…esult.
  • Loading branch information
FooBarrior authored and sanja-byelkin committed Feb 12, 2024
1 parent 8a88282 commit eb24812
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sql/sql_show.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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);

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit eb24812

Please sign in to comment.