summaryrefslogtreecommitdiff
path: root/sql/sql_delete.cc
diff options
context:
space:
mode:
authorSergey Petrunya <psergey@askmonty.org>2011-03-27 03:45:16 +0400
committerSergey Petrunya <psergey@askmonty.org>2011-03-27 03:45:16 +0400
commit5de770f31736e1ed7088b6d609a4237083d4fe47 (patch)
tree7a806cb868f740609a99d3dcdd352f68d8dcb188 /sql/sql_delete.cc
parent290a72d50b65975e0bdd5caffa74d04acee906a5 (diff)
downloadmariadb-git-5de770f31736e1ed7088b6d609a4237083d4fe47.tar.gz
MWL#90: Address review feedback part #14
Diffstat (limited to 'sql/sql_delete.cc')
-rw-r--r--sql/sql_delete.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/sql/sql_delete.cc b/sql/sql_delete.cc
index e2cb17090a1..49ffa3913f8 100644
--- a/sql/sql_delete.cc
+++ b/sql/sql_delete.cc
@@ -677,9 +677,10 @@ multi_delete::initialize_tables(JOIN *join)
walk= delete_tables;
- for (JOIN_TAB *tab=join->join_tab, *end=join->join_tab+join->tables;
- tab < end;
- tab++)
+
+ for (JOIN_TAB *tab= first_linear_tab(join, WITH_CONST_TABLES);
+ tab;
+ tab= next_linear_tab(join, tab, WITH_BUSH_ROOTS))
{
if (tab->table->map & tables_to_delete_from)
{