summaryrefslogtreecommitdiff
path: root/sql/sql_window.cc
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2018-05-12 22:14:59 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2018-05-12 22:14:59 +0300
commit15419a558370aeed9521b498c34d50f20a8d47a5 (patch)
treecd15d32e9b61f297d8fafb048df85d9148951eb2 /sql/sql_window.cc
parent5e84ea9634ac491f3da84f6c15987d4c1b1a5a3a (diff)
parent77867c147b8a278977203ad33d7daff0587a112a (diff)
downloadmariadb-git-15419a558370aeed9521b498c34d50f20a8d47a5.tar.gz
Merge 10.2 into 10.3
Diffstat (limited to 'sql/sql_window.cc')
-rw-r--r--sql/sql_window.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_window.cc b/sql/sql_window.cc
index 025a56ae239..38fdd8ab80b 100644
--- a/sql/sql_window.cc
+++ b/sql/sql_window.cc
@@ -2931,7 +2931,7 @@ bool Window_func_runner::exec(THD *thd, TABLE *tbl, SORT_INFO *filesort_result)
bool Window_funcs_sort::exec(JOIN *join)
{
THD *thd= join->thd;
- JOIN_TAB *join_tab= join->join_tab + join->exec_join_tab_cnt();
+ JOIN_TAB *join_tab= join->join_tab + join->total_join_tab_cnt();
/* Sort the table based on the most specific sorting criteria of
the window functions. */