mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Fix column range cardinality crash when histogram is null
Signed-off-by: Michael Okoko <okokomichaels@outlook.com>
This commit is contained in:
committed by
Sergei Petrunia
parent
058a90e6f5
commit
096995b106
@ -1,10 +1,11 @@
|
||||
set @SINGLE_PREC_TYPE='single_prec_hb';
|
||||
set @DOUBLE_PREC_TYPE='double_prec_hb';
|
||||
set @DEFAULT_HIST_TYPE=@@histogram_type;
|
||||
drop table if exists t1,t2;
|
||||
set @save_use_stat_tables=@@use_stat_tables;
|
||||
set @save_histogram_size=@@global.histogram_size;
|
||||
set @@global.histogram_size=0,@@local.histogram_size=0;
|
||||
set @save_hist_type=@@histogram_type;
|
||||
set @save_hist_type=@DEFAULT_HIST_TYPE;
|
||||
set histogram_type=@SINGLE_PREC_TYPE;
|
||||
DELETE FROM mysql.table_stats;
|
||||
DELETE FROM mysql.column_stats;
|
||||
|
Reference in New Issue
Block a user