summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sql/sql_select.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_select.cc b/sql/sql_select.cc
index 6b044eebdd1..d097f3e28ad 100644
--- a/sql/sql_select.cc
+++ b/sql/sql_select.cc
@@ -7309,7 +7309,7 @@ double table_multi_eq_cond_selectivity(JOIN *join, uint idx, JOIN_TAB *s,
{
double curr_eq_fld_sel;
fld= fi.get_curr_field();
- if (!fld->table->map & ~(table_bit | rem_tables))
+ if (!(fld->table->map & ~(table_bit | rem_tables)))
continue;
curr_eq_fld_sel= get_column_avg_frequency(fld) /
fld->table->stat_records();