mirror of
https://github.com/MariaDB/server.git
synced 2026-05-14 19:07:15 +02:00
MDEV-24593 Signal 11 when group by primary key of table joined to information_schema.columns
I_S tables were materialized too late, an attempt to use table statistics before the table was created caused a crash. Let's move table creation up. it only needs read_set to be calculated properly, this happens in JOIN::optimize_inner(), after semijoin transformation. Note that tables are not populated at that point, so most of the statistics would make no sense anyway. But at least field sizes will be correct. And it won't crash.
This commit is contained in:
parent
61feb568bb
commit
4e503aec7f
7 changed files with 77 additions and 53 deletions
|
|
@ -2282,5 +2282,14 @@ create table t2 (n int);
|
|||
insert into t1 set n = (select table_rows from information_schema.tables where table_name='t2');
|
||||
drop table t1, t2;
|
||||
#
|
||||
# MDEV-24593 Signal 11 when group by primary key of table joined to information_schema.columns
|
||||
#
|
||||
create table t1 (f varchar(64) primary key);
|
||||
select f from information_schema.columns i
|
||||
inner join t1 on f=i.column_name
|
||||
group by f;
|
||||
f
|
||||
drop table t1;
|
||||
#
|
||||
# End of 10.3 tests
|
||||
#
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue