summaryrefslogtreecommitdiff
path: root/sql/sql_show.cc
diff options
context:
space:
mode:
authorgluh@mysql.com <>2005-05-07 13:55:46 +0000
committergluh@mysql.com <>2005-05-07 13:55:46 +0000
commit64cbbf146399ac5ed088a12dacda5ac5ca2bf7d2 (patch)
tree14fdaabd43346891117966f8c76219034a9fc513 /sql/sql_show.cc
parenta8febcd7d2c3d4cd700f7cdd0cc5062af841ec96 (diff)
downloadmariadb-git-64cbbf146399ac5ed088a12dacda5ac5ca2bf7d2.tar.gz
Fix for bug #9838: INFORMATION_SCHEMA.COLUMNS columns of granted views missing
Diffstat (limited to 'sql/sql_show.cc')
-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 f48a8d67d54..ceb98740298 100644
--- a/sql/sql_show.cc
+++ b/sql/sql_show.cc
@@ -2303,8 +2303,8 @@ static int get_schema_column_record(THD *thd, struct st_table_list *tables,
uint col_access;
check_access(thd,SELECT_ACL | EXTRA_ACL, base_name,
&tables->grant.privilege, 0, 0);
- col_access= get_column_grant(thd, &tables->grant, tables->db,
- tables->table_name,
+ col_access= get_column_grant(thd, &tables->grant,
+ base_name, file_name,
field->field_name) & COL_ACLS;
if (lex->orig_sql_command != SQLCOM_SHOW_FIELDS && !col_access)
continue;