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:
gluh@gluh.mysql.r18.ru 2005-01-28 19:08:27 +03:00
parent d8f0e8f04e
commit 0434ecced3

View file

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