← Back to team overview

maria-developers team mailing list archive

Patch to fix the dbug printout crash in 5.3-subqueries


Hi Sanja,

Here is the fix:

=== modified file 'sql/sql_select.cc'
--- sql/sql_select.cc	2010-03-29 20:09:40 +0000
+++ sql/sql_select.cc	2010-04-19 17:59:46 +0000
@@ -5214,7 +5214,7 @@ greedy_search(JOIN      *join,
         'join->best_positions' contains a complete optimal extension of the
         current partial QEP.
-      DBUG_EXECUTE("opt", print_plan(join, join->tables,
+      DBUG_EXECUTE("opt", print_plan(join, n_tables,
                                      record_count, read_time, read_time,

feel free to apply/push or I'll do it today night.

Sergey Petrunia, Software Developer
Monty Program AB, http://askmonty.org
Blog: http://s.petrunia.net/blog