summaryrefslogtreecommitdiff
path: root/sql/sp_pcontext.cc
diff options
context:
space:
mode:
authorunknown <pem@mysql.com>2003-03-19 11:36:32 +0100
committerunknown <pem@mysql.com>2003-03-19 11:36:32 +0100
commitaddf8ea04ec295a679845cd1911d5e3504c91fab (patch)
tree33e8c3cc7d26038b2d997b640ecd92b22c0114f8 /sql/sp_pcontext.cc
parentd956a1c580c0df2b3018fe341bb1bc2aa8bddb53 (diff)
downloadmariadb-git-addf8ea04ec295a679845cd1911d5e3504c91fab.tar.gz
Post-merge fixes.
mysql-test/r/sp.result: Post-merge fixes. (And disabled the ip test, since some change in 4.1 broke it.) mysql-test/t/sp.test: Post-merge fixes. (And disabled the ip test, since some change in 4.1 broke it.)
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;
}