mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 04:53:01 +01:00
A fix: 'information_schema' test with ps-protocol option fails
table_list->schema_table_name may be 0 in this case and 'strcasecmp' is not necessary in this case.
This commit is contained in:
parent
d8f0e8f04e
commit
0434ecced3
1 changed files with 4 additions and 3 deletions
|
@ -3191,9 +3191,10 @@ int mysql_schema_table(THD *thd, LEX *lex, TABLE_LIST *table_list)
|
|||
views
|
||||
working correctly
|
||||
*/
|
||||
table->alias_name_used= my_strcasecmp(table_alias_charset,
|
||||
table_list->schema_table_name,
|
||||
table_list->alias);
|
||||
if (table_list->schema_table_name)
|
||||
table->alias_name_used= my_strcasecmp(table_alias_charset,
|
||||
table_list->schema_table_name,
|
||||
table_list->alias);
|
||||
table_list->table_name= (char*) table->s->table_name;
|
||||
table_list->table= table;
|
||||
table->next= thd->derived_tables;
|
||||
|
|
Loading…
Reference in a new issue