MCPcopy Create free account
hub / github.com/MariaDB/server / lookup

Method lookup

sql/sql_acl.cc:13623–13637  ·  view source on GitHub ↗

Search per internal schema ACL by name. @param name a schema name @return per schema rules, or NULL */

Source from the content-addressed store, hash-verified

13621 @return per schema rules, or NULL
13622*/
13623const ACL_internal_schema_access *
13624ACL_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.

Callers 1

get_cached_table_accessFunction · 0.45

Calls 1

streqMethod · 0.45

Tested by

no test coverage detected