summaryrefslogtreecommitdiff
path: root/mysql-test/main/show.test
blob: f2f6efc4e45e47261c8130d81fbd182362615121 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
--echo #
--echo # MDEV-9538 Server crashes in check_show_access on SHOW STATISTICS
--echo # MDEV-9539 Server crashes in make_columns_old_format on SHOW GEOMETRY_COLUMNS
--echo # MDEV-9540 SHOW SPATIAL_REF_SYS and SHOW SYSTEM_VARIABLES return empty results with numerous warnings
--echo #
--error ER_PARSE_ERROR
show statistics;
--error ER_PARSE_ERROR
show spatial_ref_sys
--error ER_PARSE_ERROR
show system_variables;
--error ER_PARSE_ERROR
show geometry_columns;
--error ER_PARSE_ERROR
show nonexistent;

--echo #
--echo # MDEV-21603 Crashing SHOW TABLES with derived table in WHERE condition
--echo #
create table t1 (nm varchar(32), a int);
insert t1 values ('1',1),('2',2),('3',3);

show tables
  where tables_in_test in (select *
                              from (select nm from test.t1 group by nm) dt);
show fields from test.t1
   where field in (select * from (select nm from test.t1 group by nm) dt);
insert t1 values ('nm',0);
show fields from test.t1
   where field in (select * from (select nm from test.t1 group by nm) dt);

show fields from test.t1 where field in
        (select * from (select column_name from information_schema.columns
                          where table_name='t1' group by column_name) dt);
drop table t1;

--echo #
--echo # End of 10.2 tests
--echo #