| 9211 | *****************************************************************************/ |
| 9212 | |
| 9213 | privilege_t get_table_grant(THD *thd, TABLE_LIST *table) |
| 9214 | { |
| 9215 | Security_context *sctx= thd->security_ctx; |
| 9216 | const char *db = table->db.str ? table->db.str : thd->db.str; |
| 9217 | |
| 9218 | mysql_rwlock_rdlock(&LOCK_grant); |
| 9219 | table->grant.read(sctx, db, table->table_name.str); |
| 9220 | table->grant.privilege|= table->grant.aggregate_privs(); |
| 9221 | privilege_t privilege(table->grant.privilege); |
| 9222 | mysql_rwlock_unlock(&LOCK_grant); |
| 9223 | return privilege; |
| 9224 | } |
| 9225 | |
| 9226 | |
| 9227 | /* |
no test coverage detected