1
0
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:
igor@rurik.mysql.com
2005-08-22 17:32:02 -07:00
parent 8c34d8e578
commit 94166de5f3
3 changed files with 24 additions and 1 deletions

View File

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