summaryrefslogtreecommitdiff
path: root/sql/sql_view.cc
diff options
context:
space:
mode:
authorMichael Widenius <monty@mariadb.org>2017-06-18 14:00:28 +0300
committerSergei Golubchik <serg@mariadb.org>2017-08-24 01:05:53 +0200
commit25c06f5282513e15c25c54364ef886310126e870 (patch)
tree4a695cd4d445e7af0739dc4485e8fb14b3d6451f /sql/sql_view.cc
parentcc77f9882dcaa4e02196bb3847cd66f2943eb4c6 (diff)
downloadmariadb-git-25c06f5282513e15c25c54364ef886310126e870.tar.gz
Optimize LEX_STRING comparisons
- Added inline lex_string_cmp() to replace my_strcase_cmp(). - Added inline lex_string_eq to first compares lengths before comparing strings
Diffstat (limited to 'sql/sql_view.cc')
-rw-r--r--sql/sql_view.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_view.cc b/sql/sql_view.cc
index 0547a3cb343..26941e9d6e7 100644
--- a/sql/sql_view.cc
+++ b/sql/sql_view.cc
@@ -140,7 +140,7 @@ bool check_duplicate_names(THD *thd, List<Item> &item_list, bool gen_unique_view
itc.rewind();
while ((check= itc++) && check != item)
{
- if (my_strcasecmp(system_charset_info, item->name.str, check->name.str) == 0)
+ if (lex_string_cmp(system_charset_info, &item->name, &check->name) == 0)
{
if (!gen_unique_view_name)
goto err;