| 8723 | } |
| 8724 | |
| 8725 | void GRANT_INFO::read(const Security_context *sctx, |
| 8726 | const char *db, const char *table) |
| 8727 | { |
| 8728 | #ifdef EMBEDDED_LIBRARY |
| 8729 | grant_table_user= grant_table_role= grant_public= NULL; |
| 8730 | #else |
| 8731 | grant_table_user= |
| 8732 | table_hash_search(sctx->host, sctx->ip, db, sctx->priv_user, |
| 8733 | table, FALSE); /* purecov: inspected */ |
| 8734 | grant_table_role= |
| 8735 | sctx->priv_role[0] ? table_hash_search("", NULL, db, sctx->priv_role, |
| 8736 | table, TRUE) : NULL; |
| 8737 | grant_public= |
| 8738 | acl_public ? table_hash_search("", NULL, db, public_name.str, |
| 8739 | table, TRUE) : NULL; |
| 8740 | #endif |
| 8741 | version= grant_version; /* purecov: inspected */ |
| 8742 | } |
| 8743 | |
| 8744 | /* |
| 8745 | Check column rights in given security context |