summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorunknown <pem@mysql.com>2003-03-27 17:35:27 +0100
committerunknown <pem@mysql.com>2003-03-27 17:35:27 +0100
commite9cc965afdc60200efa058bdd71ff78093c63ef4 (patch)
tree2aa1025394aef64bf23d2c52e042ec28470af788 /sql
parent8db55dcf86d87bece091520826f4142b96e9a283 (diff)
downloadmariadb-git-e9cc965afdc60200efa058bdd71ff78093c63ef4.tar.gz
Replaced a couple of strcasecmps.
Diffstat (limited to 'sql')
-rw-r--r--sql/sp.cc2
-rw-r--r--sql/sp_head.cc4
-rw-r--r--sql/sp_pcontext.cc2
3 files changed, 4 insertions, 4 deletions
diff --git a/sql/sp.cc b/sql/sp.cc
index 2bb714ab33a..abfb0f26e23 100644
--- a/sql/sp.cc
+++ b/sql/sp.cc
@@ -348,7 +348,7 @@ sp_cache_functions(THD *thd, LEX *lex)
while ((sp= lisp++))
{
- if (strcasecmp(fn, sp->name()) == 0)
+ if (my_strcasecmp(system_charset_info, fn, sp->name()) == 0)
break;
}
if (sp)
diff --git a/sql/sp_head.cc b/sql/sp_head.cc
index 09c680a0b80..f15553c7e33 100644
--- a/sql/sp_head.cc
+++ b/sql/sp_head.cc
@@ -358,7 +358,7 @@ sp_head::restore_lex(THD *thd)
char **it;
while ((it= li++))
- if (strcasecmp(proc, *it) == 0)
+ if (my_strcasecmp(system_charset_info, proc, *it) == 0)
break;
if (! it)
m_calls.push_back(&proc);
@@ -380,7 +380,7 @@ sp_head::restore_lex(THD *thd)
char **tb;
while ((tb= li++))
- if (strcasecmp(tables->real_name, *tb) == 0)
+ if (my_strcasecmp(system_charset_info, tables->real_name, *tb) == 0)
break;
if (! tb)
m_tables.push_back(&tables->real_name);
diff --git a/sql/sp_pcontext.cc b/sql/sp_pcontext.cc
index 94eb8df4b95..d59db9b449b 100644
--- a/sql/sp_pcontext.cc
+++ b/sql/sp_pcontext.cc
@@ -120,7 +120,7 @@ sp_pcontext::find_label(char *name)
sp_label_t *lab;
while ((lab= li++))
- if (strcasecmp(name, lab->name) == 0)
+ if (my_strcasecmp(system_charset_info, name, lab->name) == 0)
return lab;
return NULL;