mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
sql_show.cc:
Database name was set incorrectly for any show command that used sunqueries in its where condition. information_schema.test, information_schema.result: Added a test case for bug #12636.
This commit is contained in:
@ -1705,7 +1705,7 @@ void get_index_field_values(LEX *lex, INDEX_FIELD_VALUES *index_field_values)
|
||||
case SQLCOM_SHOW_TABLES:
|
||||
case SQLCOM_SHOW_TABLE_STATUS:
|
||||
case SQLCOM_SHOW_TRIGGERS:
|
||||
index_field_values->db_value= lex->current_select->db;
|
||||
index_field_values->db_value= lex->select_lex.db;
|
||||
index_field_values->table_value= wild;
|
||||
break;
|
||||
default:
|
||||
|
Reference in New Issue
Block a user