diff options
author | Monty <monty@mariadb.org> | 2015-08-18 01:00:28 +0300 |
---|---|---|
committer | Monty <monty@mariadb.org> | 2015-08-18 01:00:28 +0300 |
commit | 4d8a6253af5b4c699acf77f9ed13d233cdb9dd9a (patch) | |
tree | 254e8fc06589dc31927062ba1b2b41cd608a959e /sql/opt_range.cc | |
parent | 2eef4d3bea7ccd3d55e9ab3316f2a23f48cd6fc5 (diff) | |
download | mariadb-git-bb-10.1-default.tar.gz |
Fixed failing tests and compiler warningsbb-10.1-default
- UNINIT_VAR() was required for 4.8.3 on openSUSE 13.2
- repair_symlink changed because of some of my earlier fixes for REPAIR
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 7361c8443c4..c2979f97e80 100644 --- a/sql/opt_range.cc +++ b/sql/opt_range.cc @@ -3545,9 +3545,11 @@ bool calculate_cond_selectivity_for_table(THD *thd, TABLE *table, Item **cond) break; bitmap_set_bit(&handled_columns, key_part->fieldnr-1); } - double selectivity_mult; if (i) { + double selectivity_mult; + UNINIT_VAR(selectivity_mult); + /* There is at least 1-column prefix of columns whose selectivity has not yet been accounted for. |