summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorbell@sanja.is.com.ua <>2004-05-31 21:10:15 +0300
committerbell@sanja.is.com.ua <>2004-05-31 21:10:15 +0300
commit4c8387706a96f5c5bab08e9b1ef6efd3990c7b17 (patch)
tree56de93e9a8c2d209e2e3852f67e1df29a38da697 /sql
parent2fd0a66591059539ef3f65beb5a5543e54c311d2 (diff)
downloadmariadb-git-4c8387706a96f5c5bab08e9b1ef6efd3990c7b17.tar.gz
correct table_hash_search call
Diffstat (limited to 'sql')
-rw-r--r--sql/sql_acl.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_acl.cc b/sql/sql_acl.cc
index 4d85741cdaa..af82e4516d6 100644
--- a/sql/sql_acl.cc
+++ b/sql/sql_acl.cc
@@ -2206,7 +2206,7 @@ bool check_grant_all_columns(THD *thd,uint want_access, TABLE *table)
if (table->grant.version != grant_version)
{
table->grant.grant_table=
- table_hash_search(thd->host,thd->ip,thd->db,
+ table_hash_search(thd->host, thd->ip, table->table_cache_key,
thd->priv_user,
table->real_name,0); /* purecov: inspected */
table->grant.version=grant_version; /* purecov: inspected */
@@ -2312,7 +2312,7 @@ uint get_column_grant(THD *thd, TABLE_LIST *table, Field *field)
if (table->grant.version != grant_version)
{
table->grant.grant_table=
- table_hash_search(thd->host,thd->ip,thd->db,
+ table_hash_search(thd->host, thd->ip, table->db,
thd->priv_user,
table->real_name,0); /* purecov: inspected */
table->grant.version=grant_version; /* purecov: inspected */