summaryrefslogtreecommitdiff
path: root/sql/sp_pcontext.cc
diff options
context:
space:
mode:
authorpem@mysql.com <>2003-03-19 11:36:32 +0100
committerpem@mysql.com <>2003-03-19 11:36:32 +0100
commit6822eb5ec0f590f35c8c4ce1020f1a68c1f8904a (patch)
tree33e8c3cc7d26038b2d997b640ecd92b22c0114f8 /sql/sp_pcontext.cc
parent4a171efd6f1b405965ad021930a52bf6c82ab297 (diff)
downloadmariadb-git-6822eb5ec0f590f35c8c4ce1020f1a68c1f8904a.tar.gz
Post-merge fixes.
Diffstat (limited to 'sql/sp_pcontext.cc')
-rw-r--r--sql/sp_pcontext.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/sql/sp_pcontext.cc b/sql/sp_pcontext.cc
index 407151c3e38..9cf7a45b46b 100644
--- a/sql/sp_pcontext.cc
+++ b/sql/sp_pcontext.cc
@@ -61,13 +61,17 @@ sp_pcontext::grow()
sp_pvar_t *
sp_pcontext::find_pvar(LEX_STRING *name)
{
- String n(name->str, name->length, default_charset_info);
uint i = m_i;
while (i-- > 0)
{
- if (stringcmp(&n, m_pvar[i].name->const_string()) == 0)
+ if (my_strncasecmp(system_charset_info,
+ name->str,
+ m_pvar[i].name->const_string()->ptr(),
+ name->length) == 0)
+ {
return m_pvar + i;
+ }
}
return NULL;
}