diff options
| author | Varun Gupta <varun.gupta@mariadb.com> | 2019-04-11 13:05:01 +0530 |
|---|---|---|
| committer | Varun Gupta <varun.gupta@mariadb.com> | 2019-04-11 13:05:01 +0530 |
| commit | 409dddf6958736d65ee77aa9b469f8b807da3bb1 (patch) | |
| tree | 8f411703fcbf16b410d6c2922e3e1fa674897709 /sql/sql_statistics.cc | |
| parent | 812ac2bb857877efc6973e275353ecdfcd8aeb35 (diff) | |
| download | mariadb-git-409dddf6958736d65ee77aa9b469f8b807da3bb1.tar.gz | |
MDEV-18300: ASAN error in Field_blob::get_key_image upon UPDATE with subquery
For single table updates and multi-table updates , engine independent statistics were not being
read even if the statistics were collected.
Fixed it, so when the optimizer_use_condition_selectivity > 2 then we would read the available
statistics for update queries.
Diffstat (limited to 'sql/sql_statistics.cc')
| -rw-r--r-- | sql/sql_statistics.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_statistics.cc b/sql/sql_statistics.cc index f4dcafdb7c3..d3a2094e272 100644 --- a/sql/sql_statistics.cc +++ b/sql/sql_statistics.cc @@ -4071,6 +4071,7 @@ bool is_eits_usable(Field *field) partition list of a table. We assume the selecticivity for such columns would be handled during partition pruning. */ + DBUG_ASSERT(field->table->stats_is_read); Column_statistics* col_stats= field->read_stats; return col_stats && !col_stats->no_stat_values_provided() && //(1) field->type() != MYSQL_TYPE_GEOMETRY && //(2) |
