Commit 8254f054 authored by Sergei Petrunia's avatar Sergei Petrunia

Fix a typo bug in table_multi_eq_cond_selectivity(). It causes compiler

warning in new gcc.
parent f813a000
...@@ -7309,7 +7309,7 @@ double table_multi_eq_cond_selectivity(JOIN *join, uint idx, JOIN_TAB *s, ...@@ -7309,7 +7309,7 @@ double table_multi_eq_cond_selectivity(JOIN *join, uint idx, JOIN_TAB *s,
{ {
double curr_eq_fld_sel; double curr_eq_fld_sel;
fld= fi.get_curr_field(); fld= fi.get_curr_field();
if (!fld->table->map & ~(table_bit | rem_tables)) if (!(fld->table->map & ~(table_bit | rem_tables)))
continue; continue;
curr_eq_fld_sel= get_column_avg_frequency(fld) / curr_eq_fld_sel= get_column_avg_frequency(fld) /
fld->table->stat_records(); fld->table->stat_records();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment