Commit 9a2d895f authored by Vicențiu Ciorbaru's avatar Vicențiu Ciorbaru Committed by Sergei Petrunia

Force need_tmp to true if we have window functions.

parent cb83e6c8
......@@ -1819,6 +1819,10 @@ JOIN::optimize_inner()
}
need_tmp= test_if_need_tmp_table();
//TODO this could probably go in test_if_need_tmp_table.
if (this->select_lex->window_specs.elements > 0) {
need_tmp= TRUE;
}
/*
If the hint FORCE INDEX FOR ORDER BY/GROUP BY is used for the table
......
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