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.
parent d8f0e8f0
...@@ -3191,9 +3191,10 @@ int mysql_schema_table(THD *thd, LEX *lex, TABLE_LIST *table_list) ...@@ -3191,9 +3191,10 @@ int mysql_schema_table(THD *thd, LEX *lex, TABLE_LIST *table_list)
views views
working correctly working correctly
*/ */
table->alias_name_used= my_strcasecmp(table_alias_charset, if (table_list->schema_table_name)
table_list->schema_table_name, table->alias_name_used= my_strcasecmp(table_alias_charset,
table_list->alias); table_list->schema_table_name,
table_list->alias);
table_list->table_name= (char*) table->s->table_name; table_list->table_name= (char*) table->s->table_name;
table_list->table= table; table_list->table= table;
table->next= thd->derived_tables; table->next= thd->derived_tables;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment