Search per internal schema ACL by name. @param name a schema name @return per schema rules, or NULL */
| 13621 | @return per schema rules, or NULL |
| 13622 | */ |
| 13623 | const ACL_internal_schema_access * |
| 13624 | ACL_internal_schema_registry::lookup(const char *name) |
| 13625 | { |
| 13626 | DBUG_ASSERT(name != NULL); |
| 13627 | |
| 13628 | uint i; |
| 13629 | |
| 13630 | const Lex_cstring_strlen name_ls(name); |
| 13631 | for (i= 0; i<m_registry_array_size; i++) |
| 13632 | { |
| 13633 | if (registry_array[i].m_name.streq(name_ls)) |
| 13634 | return registry_array[i].m_access; |
| 13635 | } |
| 13636 | return NULL; |
| 13637 | } |
| 13638 | |
| 13639 | /** |
| 13640 | Get a cached internal schema access. |
no test coverage detected