1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

MDEV-462: SHOW EXPLAIN: Assertion `table_list->table' fails in find_field_in_table_ref ...

- Only allow basic constants as SHOW EXPLAIN arguments.
This commit is contained in:
Sergey Petrunya
2012-10-06 11:09:18 +04:00
parent 30df032e28
commit b988331b71
3 changed files with 15 additions and 3 deletions

View File

@ -2159,7 +2159,8 @@ mysql_execute_command(THD *thd)
}
Item **it= lex->value_list.head_ref();
if ((!(*it)->fixed && (*it)->fix_fields(lex->thd, it)) ||
if (!(*it)->basic_const_item() ||
(!(*it)->fixed && (*it)->fix_fields(lex->thd, it)) ||
(*it)->check_cols(1))
{
my_message(ER_SET_CONSTANTS_ONLY, ER(ER_SET_CONSTANTS_ONLY),