1
0
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:
Igor Babaev
2013-04-05 11:24:28 -07:00
parent 4079a5dc3f
commit daaa5834c9
5 changed files with 87 additions and 2 deletions

View File

@ -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) {