diff options
author | pem@mysql.com <> | 2003-03-20 11:57:05 +0100 |
---|---|---|
committer | pem@mysql.com <> | 2003-03-20 11:57:05 +0100 |
commit | 0d95f36a12bd9a5b9c71cbc6ed2f3f877e9522c0 (patch) | |
tree | 1ff2eb84da87aeb7018e7aa576dfa3a9be0868e1 /sql/sp_pcontext.cc | |
parent | 6822eb5ec0f590f35c8c4ce1020f1a68c1f8904a (diff) | |
download | mariadb-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.cc | 6 |
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; } |