summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2012-01-13 13:54:55 +0100
committerSergei Golubchik <sergii@pisem.net>2012-01-13 13:54:55 +0100
commit6ca4ca7d37fed3b3da18666768de6a2f8c34bc7b (patch)
treeabbee051ab0721e8acd6948810361c503a7975ca
parent45e25e3643779f4da28c8da2e7e2cdf7a1f92f5c (diff)
downloadmariadb-git-6ca4ca7d37fed3b3da18666768de6a2f8c34bc7b.tar.gz
multi-delete should ignore semi-join internal temp tables,
when looking for tables to delete from
-rw-r--r--sql/sql_delete.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_delete.cc b/sql/sql_delete.cc
index 722b6f7478f..3ce375190a7 100644
--- a/sql/sql_delete.cc
+++ b/sql/sql_delete.cc
@@ -715,7 +715,7 @@ multi_delete::initialize_tables(JOIN *join)
for (JOIN_TAB *tab= first_linear_tab(join, WITH_CONST_TABLES);
tab;
- tab= next_linear_tab(join, tab, WITH_BUSH_ROOTS))
+ tab= next_linear_tab(join, tab, WITHOUT_BUSH_ROOTS))
{
if (tab->table->map & tables_to_delete_from)
{