1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Bug#35428 When selecting from INFORMATION_SCHEMA tables, incomplete metadata

backport to Betony
This commit is contained in:
Sergey Glukhov
2009-10-23 14:19:54 +05:00
parent 0a0f50e4ab
commit 676c12e2d4
9 changed files with 221 additions and 195 deletions

View File

@ -6010,7 +6010,9 @@ find_field_in_table_ref(THD *thd, TABLE_LIST *table_list,
table_name && table_name[0] &&
(my_strcasecmp(table_alias_charset, table_list->alias, table_name) ||
(db_name && db_name[0] && table_list->db && table_list->db[0] &&
strcmp(db_name, table_list->db))))
(table_list->schema_table ?
my_strcasecmp(system_charset_info, db_name, table_list->db) :
strcmp(db_name, table_list->db)))))
DBUG_RETURN(0);
*actual_table= NULL;