summaryrefslogtreecommitdiff
path: root/storage/heap
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2021-01-21 16:40:36 +0100
committerSergei Golubchik <serg@mariadb.org>2021-01-22 00:04:31 +0100
commit4e503aec7feaeb2297035f565ca92c98d4557577 (patch)
tree35574fc7d97078a9dd7f92615efa959551271182 /storage/heap
parent61feb568bbbfc3ea68060bf9f59b4c3eeb999ca0 (diff)
downloadmariadb-git-4e503aec7feaeb2297035f565ca92c98d4557577.tar.gz
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.
Diffstat (limited to 'storage/heap')
-rw-r--r--storage/heap/ha_heap.cc3
1 files changed, 0 insertions, 3 deletions
diff --git a/storage/heap/ha_heap.cc b/storage/heap/ha_heap.cc
index a40f4b8a464..5af68f098a4 100644
--- a/storage/heap/ha_heap.cc
+++ b/storage/heap/ha_heap.cc
@@ -363,9 +363,6 @@ int ha_heap::info(uint flag)
{
HEAPINFO hp_info;
- if (!table)
- return 0;
-
(void) heap_info(file,&hp_info,flag);
errkey= hp_info.errkey;