summaryrefslogtreecommitdiff
path: root/sql/sql_statistics.h
diff options
context:
space:
mode:
authorVarun Gupta <varunraiko1803@gmail.com>2018-04-02 13:14:30 +0300
committerVarun Gupta <varunraiko1803@gmail.com>2018-04-02 13:14:30 +0300
commit10f6b7001bd7b683c013ae407c2c48793caa3633 (patch)
tree490dca62fe625e6ea7a6417df72c90b398099aa8 /sql/sql_statistics.h
parent6aff5fa27ae863670608ae88b134453fe53c3e17 (diff)
downloadmariadb-git-10f6b7001bd7b683c013ae407c2c48793caa3633.tar.gz
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.
Diffstat (limited to 'sql/sql_statistics.h')
-rw-r--r--sql/sql_statistics.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_statistics.h b/sql/sql_statistics.h
index 8e5f8107849..20b2eb66449 100644
--- a/sql/sql_statistics.h
+++ b/sql/sql_statistics.h
@@ -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
{