1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +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

@ -43,7 +43,7 @@ alter table t1 add key(a), add key(b);
# Try killing a non-existent thread
#
--error ER_NO_SUCH_THREAD
show explain for 2*1000*1000*1000;
show explain for 2000000000;
--error ER_SET_CONSTANTS_ONLY
show explain for (select max(a) from t0);
@ -1105,5 +1105,11 @@ reap;
set debug_dbug='';
set names default;
--echo #
--echo # MDEV-462: SHOW EXPLAIN: Assertion `table_list->table' fails in find_field_in_table_ref if FOR contains a non-numeric value
--echo #
--error ER_SET_CONSTANTS_ONLY
show explain for foo;
--echo # End
drop table t0;