mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
WL#1366: Use the schema (db) associated with an SP.
Phase 1: Introduced sp_name class, for qualified name support.
This commit is contained in:
@ -71,7 +71,7 @@ sp_cache_insert(sp_cache **cp, sp_head *sp)
|
||||
}
|
||||
|
||||
sp_head *
|
||||
sp_cache_lookup(sp_cache **cp, char *name, uint namelen)
|
||||
sp_cache_lookup(sp_cache **cp, sp_name *name)
|
||||
{
|
||||
ulong v;
|
||||
sp_cache *c= *cp;
|
||||
@ -89,11 +89,11 @@ sp_cache_lookup(sp_cache **cp, char *name, uint namelen)
|
||||
c->version= v;
|
||||
return NULL;
|
||||
}
|
||||
return c->lookup(name, namelen);
|
||||
return c->lookup(name->m_name.str, name->m_name.length);
|
||||
}
|
||||
|
||||
bool
|
||||
sp_cache_remove(sp_cache **cp, char *name, uint namelen)
|
||||
sp_cache_remove(sp_cache **cp, sp_name *name)
|
||||
{
|
||||
sp_cache *c= *cp;
|
||||
bool found= FALSE;
|
||||
@ -109,7 +109,7 @@ sp_cache_remove(sp_cache **cp, char *name, uint namelen)
|
||||
if (c->version < v)
|
||||
c->remove_all();
|
||||
else
|
||||
found= c->remove(name, namelen);
|
||||
found= c->remove(name->m_name.str, name->m_name.length);
|
||||
c->version= v+1;
|
||||
}
|
||||
return found;
|
||||
|
Reference in New Issue
Block a user