Commit 6a3e29c8 authored by monty@mysql.com's avatar monty@mysql.com

Fix wrong last edit for last commit

parent ede8169d
......@@ -608,7 +608,7 @@ JOIN::optimize()
!(select_options & SELECT_NO_UNLOCK))
{
TABLE **curr_table, **end;
for (curr_table= table, end=cur_table + const_tables ;
for (curr_table= table, end=curr_table + const_tables ;
curr_table != end;
curr_table++)
{
......@@ -1411,7 +1411,7 @@ JOIN::exec()
if (!(curr_table->select->cond=
new Item_cond_and(curr_table->select->cond, sort_table_cond)))
DBUG_VOID_RETURN;
curr_table->select_cond= cur_table->select->cond;
curr_table->select_cond= curr_table->select->cond;
curr_table->select_cond->top_level_item();
DBUG_EXECUTE("where",print_where(curr_table->select->cond,
"select and having"););
......
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