summaryrefslogtreecommitdiff
path: root/sql/sp_pcontext.cc
diff options
context:
space:
mode:
authorpem@mysql.com <>2003-03-20 11:57:05 +0100
committerpem@mysql.com <>2003-03-20 11:57:05 +0100
commit0d95f36a12bd9a5b9c71cbc6ed2f3f877e9522c0 (patch)
tree1ff2eb84da87aeb7018e7aa576dfa3a9be0868e1 /sql/sp_pcontext.cc
parent6822eb5ec0f590f35c8c4ce1020f1a68c1f8904a (diff)
downloadmariadb-git-0d95f36a12bd9a5b9c71cbc6ed2f3f877e9522c0.tar.gz
Post post merge fix. Made the broken ip test work again.
Diffstat (limited to 'sql/sp_pcontext.cc')
-rw-r--r--sql/sp_pcontext.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/sql/sp_pcontext.cc b/sql/sp_pcontext.cc
index 9cf7a45b46b..9d22c6be62b 100644
--- a/sql/sp_pcontext.cc
+++ b/sql/sp_pcontext.cc
@@ -65,10 +65,14 @@ sp_pcontext::find_pvar(LEX_STRING *name)
while (i-- > 0)
{
+ uint len= m_pvar[i].name->const_string()->length();
+
+ if (name->length > len)
+ len= name->length;
if (my_strncasecmp(system_charset_info,
name->str,
m_pvar[i].name->const_string()->ptr(),
- name->length) == 0)
+ len) == 0)
{
return m_pvar + i;
}