mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Bug#49501 Inefficient information_schema check (system collation)
added check_length optimization for I_S_NAME comparison
This commit is contained in:
@ -1415,8 +1415,12 @@ bool get_schema_tables_result(JOIN *join,
|
||||
enum enum_schema_table_state executed_place);
|
||||
enum enum_schema_tables get_schema_table_idx(ST_SCHEMA_TABLE *schema_table);
|
||||
|
||||
#define is_schema_db(X) \
|
||||
!my_strcasecmp(system_charset_info, INFORMATION_SCHEMA_NAME.str, (X))
|
||||
inline bool is_schema_db(const char *name, size_t len)
|
||||
{
|
||||
return (INFORMATION_SCHEMA_NAME.length == len &&
|
||||
!my_strcasecmp(system_charset_info,
|
||||
INFORMATION_SCHEMA_NAME.str, name));
|
||||
}
|
||||
|
||||
/* sql_prepare.cc */
|
||||
|
||||
|
Reference in New Issue
Block a user