summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <bell@sanja.is.com.ua>2004-05-31 21:10:15 +0300
committerunknown <bell@sanja.is.com.ua>2004-05-31 21:10:15 +0300
commitdc25060a5ff117a1c859d4412f2172d762b24109 (patch)
tree56de93e9a8c2d209e2e3852f67e1df29a38da697
parent3a4d315fa1fba3dbd06f9ff7ba7f2d65da7d3d2a (diff)
downloadmariadb-git-dc25060a5ff117a1c859d4412f2172d762b24109.tar.gz
correct table_hash_search call
-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 */