summaryrefslogtreecommitdiff
path: root/sql/sp_cache.cc
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.org>2017-03-31 14:26:43 +0400
committerAlexander Barkov <bar@mariadb.org>2017-03-31 14:26:43 +0400
commite191833d758e89d282aea2d84126c9ca10036571 (patch)
treef72e6169c5d1e2088b948ec301e9ed00065704ec /sql/sp_cache.cc
parent0d8dc74d3039753877c174a53b59c5f3d220113b (diff)
downloadmariadb-git-e191833d758e89d282aea2d84126c9ca10036571.tar.gz
MDEV-12415 Remove sp_name::m_qname
Diffstat (limited to 'sql/sp_cache.cc')
-rw-r--r--sql/sp_cache.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/sp_cache.cc b/sql/sp_cache.cc
index bafd0f34ab6..b80cde335db 100644
--- a/sql/sp_cache.cc
+++ b/sql/sp_cache.cc
@@ -167,8 +167,7 @@ void sp_cache_insert(sp_cache **cp, sp_head *sp)
}
/* Reading a ulong variable with no lock. */
sp->set_sp_cache_version(Cversion);
- DBUG_PRINT("info",("sp_cache: inserting: %.*s", (int) sp->m_qname.length,
- sp->m_qname.str));
+ DBUG_PRINT("info",("sp_cache: inserting: %s", ErrConvDQName(sp).ptr()));
c->insert(sp);
*cp= c; // Update *cp if it was NULL
}
@@ -192,10 +191,11 @@ void sp_cache_insert(sp_cache **cp, sp_head *sp)
sp_head *sp_cache_lookup(sp_cache **cp, sp_name *name)
{
+ char buf[NAME_LEN * 2 + 2];
sp_cache *c= *cp;
if (! c)
return NULL;
- return c->lookup(name->m_qname.str, name->m_qname.length);
+ return c->lookup(buf, name->make_qname(buf, sizeof(buf)));
}