diff options
author | Sergei Golubchik <serg@mariadb.org> | 2018-12-06 15:08:42 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2018-12-06 15:08:42 +0100 |
commit | 6491c591b26b61a99fd4279d65b93d277083c4c7 (patch) | |
tree | 9a51f59c7bc9b95c04ab6446d012959cb50a1f3d /sql/opt_range.cc | |
parent | 328d7779bc1e5b88b7f72dde8465d0c58f38f42c (diff) | |
parent | daca7e70d70cfc59b4139239bbd09b7c63912be9 (diff) | |
download | mariadb-git-6491c591b26b61a99fd4279d65b93d277083c4c7.tar.gz |
Merge branch '10.0' into 10.1
Diffstat (limited to 'sql/opt_range.cc')
-rw-r--r-- | sql/opt_range.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sql/opt_range.cc b/sql/opt_range.cc index ac928c35df2..f3740a08fc6 100644 --- a/sql/opt_range.cc +++ b/sql/opt_range.cc @@ -2762,7 +2762,9 @@ bool create_key_parts_for_pseudo_indexes(RANGE_OPT_PARAM *param, if (bitmap_is_set(used_fields, (*field_ptr)->field_index)) { Field *field= *field_ptr; - if (field->type() == MYSQL_TYPE_GEOMETRY) + Column_statistics* col_stats= field->read_stats; + if (field->type() == MYSQL_TYPE_GEOMETRY || + !col_stats || col_stats->no_stat_values_provided()) continue; uint16 store_length; |