1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-9744: session optimizer_use_condition_selectivity=5 causing SQL Error (1918):

Encountered illegal value '' when converting to DECIMAL

The issue was that EITS data was allocated but then not read for some reason (one being to avoid a deadlock),
then the optimizer was using these bzero'ed buffers as EITS statistics.
This should not be allowed, we should use statistcs for a table only when we have successfully loaded/read
the stats from the statistical tables.
This commit is contained in:
Varun Gupta
2018-04-02 13:14:30 +03:00
parent 6aff5fa27a
commit 10f6b7001b
4 changed files with 72 additions and 6 deletions

View File

@ -107,6 +107,7 @@ double get_column_range_cardinality(Field *field,
key_range *min_endp,
key_range *max_endp,
uint range_flag);
bool is_stat_table(const char *db, const char *table);
class Histogram
{