summaryrefslogtreecommitdiff
path: root/sql/mysql_priv.h
diff options
context:
space:
mode:
authorSergey Glukhov <Sergey.Glukhov@sun.com>2010-01-22 14:58:21 +0400
committerSergey Glukhov <Sergey.Glukhov@sun.com>2010-01-22 14:58:21 +0400
commit4a10f7b46c9ebbd9af89f37f64df40981459b788 (patch)
treebac6a09c84cadfa7b79089a66ed4c224e0a0e3c5 /sql/mysql_priv.h
parentf42a200e9e1e535dcf647237fcb4ccb65c04965d (diff)
downloadmariadb-git-4a10f7b46c9ebbd9af89f37f64df40981459b788.tar.gz
Bug#49501 Inefficient information_schema check (system collation), addon
removed wrongly introduced strlen calls sql/events.cc: removed wrongly introduced strlen calls sql/mysql_priv.h: removed wrongly introduced strlen calls sql/repl_failsafe.cc: removed wrongly introduced strlen calls sql/sql_db.cc: removed wrongly introduced strlen calls sql/sql_parse.cc: removed wrongly introduced strlen calls sql/sql_show.cc: removed wrongly introduced strlen calls
Diffstat (limited to 'sql/mysql_priv.h')
-rw-r--r--sql/mysql_priv.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sql/mysql_priv.h b/sql/mysql_priv.h
index 76edbf1dea3..abc50cd8063 100644
--- a/sql/mysql_priv.h
+++ b/sql/mysql_priv.h
@@ -1426,6 +1426,12 @@ inline bool is_schema_db(const char *name, size_t len)
INFORMATION_SCHEMA_NAME.str, name));
}
+inline bool is_schema_db(const char *name)
+{
+ return !my_strcasecmp(system_charset_info,
+ INFORMATION_SCHEMA_NAME.str, name);
+}
+
/* sql_prepare.cc */
void mysqld_stmt_prepare(THD *thd, const char *packet, uint packet_length);