Commit 09bbb2e0 authored by unknown's avatar unknown

inserted forgoten ASSERT (BUG#1180)


sql/sql_prepare.cc:
  inserted forgoten ASSERT
parent 2d7b4898
...@@ -937,8 +937,7 @@ void mysql_stmt_execute(THD *thd, char *packet) ...@@ -937,8 +937,7 @@ void mysql_stmt_execute(THD *thd, char *packet)
// copy WHERE clause pointers to avoid damaging they by optimisation // copy WHERE clause pointers to avoid damaging they by optimisation
if (sl->prep_where) if (sl->prep_where)
sl->where= sl->prep_where->copy_andor_structure(thd); sl->where= sl->prep_where->copy_andor_structure(thd);
// force allocation new JOIN for this mem_root (for safety) DBUG_ASSERT(sl->join == 0);
sl->join= 0;
} }
init_stmt_execute(stmt); init_stmt_execute(stmt);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment