mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Fixed bug mdev-4370.
Don't try to a histogram if it is not read into the cache for statistical data. It may happen so if optimizer_use_condition_selectivity is set to 3. This setting orders the optimizer not use histograms to calculate selectivity.
This commit is contained in:
@ -195,6 +195,8 @@ public:
|
||||
|
||||
void set_values (uchar *vals) { values= (uchar *) vals; }
|
||||
|
||||
bool is_available() { return get_size() > 0 && get_values(); }
|
||||
|
||||
void set_value(uint i, double val)
|
||||
{
|
||||
switch (type) {
|
||||
|
Reference in New Issue
Block a user