summaryrefslogtreecommitdiff
path: root/sql/sql_class.cc
diff options
context:
space:
mode:
authorunknown <timour@askmonty.org>2010-09-05 18:43:47 +0300
committerunknown <timour@askmonty.org>2010-09-05 18:43:47 +0300
commit18ad3bdc2fa3bbe1bfd7e433adb0bc6b3dbce8c8 (patch)
tree6c257aff7c14aa611fc2a7f76149dc830c7ed9e8 /sql/sql_class.cc
parentaa195b25704b4e67423654422ce0b601b54f809d (diff)
downloadmariadb-git-18ad3bdc2fa3bbe1bfd7e433adb0bc6b3dbce8c8.tar.gz
MWL#89: Cost-based choice between Materialization and IN->EXISTS transformation
Fixes for multiple problems/bugs/test failures that resulted from moving subquery optimization from the execution phase to the optimization phase.
Diffstat (limited to 'sql/sql_class.cc')
-rw-r--r--sql/sql_class.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_class.cc b/sql/sql_class.cc
index a4e8c84401b..930cf2393f7 100644
--- a/sql/sql_class.cc
+++ b/sql/sql_class.cc
@@ -2630,6 +2630,7 @@ void Query_arena::free_items()
for (; free_list; free_list= next)
{
next= free_list->next;
+ DBUG_ASSERT(free_list != next);
free_list->delete_self();
}
/* Postcondition: free_list is 0 */