summaryrefslogtreecommitdiff
path: root/sql/opt_sum.cc
diff options
context:
space:
mode:
authorbell@sanja.is.com.ua <>2004-07-16 01:15:55 +0300
committerbell@sanja.is.com.ua <>2004-07-16 01:15:55 +0300
commit9336d36cf81f404088844fc31918887799d3da03 (patch)
tree7a8e815ca26d9138de3bc77a619aa8103e037911 /sql/opt_sum.cc
parent2fd11169ab10b8d752afbcc2dd58a15cf4de9c45 (diff)
downloadmariadb-git-9336d36cf81f404088844fc31918887799d3da03.tar.gz
VIEW
two TABLE_LIST copy eliminated
Diffstat (limited to 'sql/opt_sum.cc')
-rw-r--r--sql/opt_sum.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/opt_sum.cc b/sql/opt_sum.cc
index f4c39462d0c..314decb7041 100644
--- a/sql/opt_sum.cc
+++ b/sql/opt_sum.cc
@@ -89,7 +89,7 @@ int opt_sum_query(TABLE_LIST *tables, List<Item> &all_fields,COND *conds)
where_tables= conds->used_tables();
/* Don't replace expression on a table that is part of an outer join */
- for (TABLE_LIST *tl=tables; tl ; tl= tl->next)
+ for (TABLE_LIST *tl= tables; tl; tl= tl->next_local)
{
if (tl->on_expr)
{
@@ -128,7 +128,7 @@ int opt_sum_query(TABLE_LIST *tables, List<Item> &all_fields,COND *conds)
{
longlong count= 1;
TABLE_LIST *table;
- for (table=tables ; table ; table=table->next)
+ for (table= tables; table; table= table->next_local)
{
if (outer_tables || (table->table->file->table_flags() &
HA_NOT_EXACT_COUNT))