From 0463b01dc8f4afdbb8a0d710975b097b8609eb90 Mon Sep 17 00:00:00 2001 From: unknown Date: Sun, 23 Feb 2003 04:27:03 +0200 Subject: [PATCH] opt_sum.cc: Correction for min/max optimization of queries with outer joins sql/opt_sum.cc: Correction for min/max optimization of queries with outer joins BitKeeper/etc/logging_ok: Logging to logging@openlogging.org accepted --- BitKeeper/etc/logging_ok | 1 + sql/opt_sum.cc | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/BitKeeper/etc/logging_ok b/BitKeeper/etc/logging_ok index 370f1a1eb8d..70aaa8d2a52 100644 --- a/BitKeeper/etc/logging_ok +++ b/BitKeeper/etc/logging_ok @@ -22,6 +22,7 @@ heikki@hundin.mysql.fi heikki@rescue. heikki@work.mysql.com hf@genie.(none) +igor@hundin.mysql.fi jani@dsl-jkl1657.dial.inet.fi jani@hynda.(none) jani@hynda.mysql.fi 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 &all_fields,COND *conds) if (tl->table->map & where_tables) return 0; } - used_tables|= tl->table->map; + else + used_tables|= tl->table->map; } /*