1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +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

@ -7,7 +7,7 @@ insert into t1 select A.a + 10*B.a + 100*C.a from t0 A, t0 B, t0 C;
alter table t1 add b int, add c int, add filler char(32);
update t1 set b=a, c=a, filler='fooo';
alter table t1 add key(a), add key(b);
show explain for 2*1000*1000*1000;
show explain for 2000000000;
ERROR HY000: Unknown thread id: 2000000000
show explain for (select max(a) from t0);
ERROR HY000: You may only use constant expressions in this statement
@ -1069,5 +1069,10 @@ a
2
set debug_dbug='';
set names default;
#
# MDEV-462: SHOW EXPLAIN: Assertion `table_list->table' fails in find_field_in_table_ref if FOR contains a non-numeric value
#
show explain for foo;
ERROR HY000: You may only use constant expressions in this statement
# End
drop table t0;