1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

Bug#49501 Inefficient information_schema check (system collation), addon

removed wrongly introduced strlen calls
This commit is contained in:
Sergey Glukhov
2010-01-22 14:58:21 +04:00
parent dc4e8890c9
commit ed79d2ecbb
6 changed files with 13 additions and 8 deletions

View File

@@ -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);