Commit 81503e47 authored by monty@hundin.mysql.fi's avatar monty@hundin.mysql.fi

Fixed rare core dump bug when using complicated GROUP BY query that didn't return any results.

This only showed up under heavy load.
parent 57152522
...@@ -4970,6 +4970,8 @@ end_write_group(JOIN *join, JOIN_TAB *join_tab __attribute__((unused)), ...@@ -4970,6 +4970,8 @@ end_write_group(JOIN *join, JOIN_TAB *join_tab __attribute__((unused)),
} }
else else
{ {
if (end_of_records)
DBUG_RETURN(0);
join->first_record=1; join->first_record=1;
VOID(test_if_group_changed(join->group_fields)); VOID(test_if_group_changed(join->group_fields));
} }
......
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