diff --git a/sql/sql_acl.cc b/sql/sql_acl.cc index 5320b2e7aaf..5ee7bf8fd58 100644 --- a/sql/sql_acl.cc +++ b/sql/sql_acl.cc @@ -3727,8 +3727,8 @@ bool check_column_grant_in_table_ref(THD *thd, TABLE_LIST * table_ref, /* Normal or temporary table. */ TABLE *table= table_ref->table; grant= &(table->grant); - db_name= table->s->db; - table_name= table->s->table_name; + db_name= table->s->db.str; + table_name= table->s->table_name.str; } if (grant->want_privilege)