Commit 054c6a93 authored by bell@sanja.is.com.ua's avatar bell@sanja.is.com.ua

inserted forgoten ASSERT (BUG#1180)

parent 51374e56
......@@ -937,8 +937,7 @@ void mysql_stmt_execute(THD *thd, char *packet)
// copy WHERE clause pointers to avoid damaging they by optimisation
if (sl->prep_where)
sl->where= sl->prep_where->copy_andor_structure(thd);
// force allocation new JOIN for this mem_root (for safety)
sl->join= 0;
DBUG_ASSERT(sl->join == 0);
}
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