diff options
author | igor@hundin.mysql.fi <> | 2003-02-23 04:27:03 +0200 |
---|---|---|
committer | igor@hundin.mysql.fi <> | 2003-02-23 04:27:03 +0200 |
commit | 726e59827ab92beabb0e352e1329c1d5c616dc3b (patch) | |
tree | 197006a3f0d16ce5a4aa3a5c5e57e391fdee44ea /sql/opt_sum.cc | |
parent | 572e2a1568a8a561218f22bfa187b0002d642740 (diff) | |
download | mariadb-git-726e59827ab92beabb0e352e1329c1d5c616dc3b.tar.gz |
opt_sum.cc:
Correction for min/max optimization of queries with outer joins
Diffstat (limited to 'sql/opt_sum.cc')
-rw-r--r-- | sql/opt_sum.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/opt_sum.cc b/sql/opt_sum.cc index 41771646082..aeaf8beef07 100644 --- a/sql/opt_sum.cc +++ b/sql/opt_sum.cc @@ -70,7 +70,8 @@ int opt_sum_query(TABLE_LIST *tables, List<Item> &all_fields,COND *conds) if (tl->table->map & where_tables) return 0; } - used_tables|= tl->table->map; + else + used_tables|= tl->table->map; } /* |