diff options
Diffstat (limited to 'sql/sp_pcontext.cc')
-rw-r--r-- | sql/sp_pcontext.cc | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/sql/sp_pcontext.cc b/sql/sp_pcontext.cc index 433efda479b..01841bb57b7 100644 --- a/sql/sp_pcontext.cc +++ b/sql/sp_pcontext.cc @@ -1,4 +1,5 @@ /* Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved. + Copyright (c) 2009, 2020, MariaDB Corporation. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -208,9 +209,8 @@ sp_variable *sp_pcontext::find_variable(const LEX_CSTRING *name, { sp_variable *p= m_vars.at(i); - if (my_strnncoll(system_charset_info, - (const uchar *)name->str, name->length, - (const uchar *)p->name.str, p->name.length) == 0) + if (system_charset_info->strnncoll(name->str, name->length, + p->name.str, p->name.length) == 0) { return p; } @@ -624,9 +624,8 @@ const sp_pcursor *sp_pcontext::find_cursor(const LEX_CSTRING *name, { LEX_CSTRING n= m_cursors.at(i); - if (my_strnncoll(system_charset_info, - (const uchar *) name->str, name->length, - (const uchar *) n.str, n.length) == 0) + if (system_charset_info->strnncoll(name->str, name->length, + n.str, n.length) == 0) { *poff= m_cursor_offset + i; return &m_cursors.at(i); |