Skip to content
Permalink
Browse files

Force need_tmp to true if we have window functions.

  • Loading branch information...
cvicentiu authored and spetrunia committed Feb 2, 2016
1 parent cb83e6c commit 9a2d895f331e1e4eea6e6a6811afbe7a4905c1dd
Showing with 4 additions and 0 deletions.
  1. +4 −0 sql/sql_select.cc
@@ -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

0 comments on commit 9a2d895

Please sign in to comment.
You can’t perform that action at this time.