diff options
author | unknown <pem@mysql.com> | 2003-04-04 15:47:43 +0200 |
---|---|---|
committer | unknown <pem@mysql.com> | 2003-04-04 15:47:43 +0200 |
commit | cfd69393e4195e55412778a9d60c7eb99c87de4c (patch) | |
tree | b3eb65ecc3865c49997f849f2d15f89fdbc58973 /sql/sp_pcontext.cc | |
parent | 2a25cf793f779bd0d43fca068ae5a5b177eb11c5 (diff) | |
download | mariadb-git-cfd69393e4195e55412778a9d60c7eb99c87de4c.tar.gz |
Post merge fixes.
mysql-test/r/sp.result:
Enabled the cs test as it works now.
mysql-test/t/sp.test:
Enabled the cs test as it works now.
Diffstat (limited to 'sql/sp_pcontext.cc')
-rw-r--r-- | sql/sp_pcontext.cc | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sql/sp_pcontext.cc b/sql/sp_pcontext.cc index 4d3cf80cd34..3973f05b74b 100644 --- a/sql/sp_pcontext.cc +++ b/sql/sp_pcontext.cc @@ -56,13 +56,10 @@ sp_pcontext::find_pvar(LEX_STRING *name) while (i-- > 0) { sp_pvar_t *p= find_pvar(i); - uint len= (p->name.length > name->length ? - p->name.length : name->length); - if (my_strncasecmp(system_charset_info, - name->str, - p->name.str, - len) == 0) + if (my_strnncoll(system_charset_info, + (const uchar *)name->str, name->length, + (const uchar *)p->name.str, p->name.length) == 0) { return p; } |