diff options
author | Igor Babaev <igor@askmonty.org> | 2013-04-06 17:18:51 -0700 |
---|---|---|
committer | Igor Babaev <igor@askmonty.org> | 2013-04-06 17:18:51 -0700 |
commit | e3bf08d4b1c8d73072227f0920b6f4e8c6441591 (patch) | |
tree | 14c5fb482492bc2543b06352a244830d5e148fb2 /sql/sql_statistics.h | |
parent | 10f0530b22d1b06c79be9fef26febebf3b9ec4a5 (diff) | |
download | mariadb-git-e3bf08d4b1c8d73072227f0920b6f4e8c6441591.tar.gz |
Fixed bug mdev-4363.
When calculating the selectivity of a range in the function
get_column_range_cardinality a check whether NULL values are
included into into the range must be done.
Diffstat (limited to 'sql/sql_statistics.h')
-rw-r--r-- | sql/sql_statistics.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/sql_statistics.h b/sql/sql_statistics.h index 14ffe3351d0..ea3dba3215a 100644 --- a/sql/sql_statistics.h +++ b/sql/sql_statistics.h @@ -105,7 +105,8 @@ double get_column_avg_frequency(Field * field); double get_column_range_cardinality(Field *field, key_range *min_endp, - key_range *max_endp); + key_range *max_endp, + uint range_flag); class Histogram { |