summaryrefslogtreecommitdiff
path: root/sql/item_windowfunc.cc
diff options
context:
space:
mode:
authorIgor Babaev <igor@askmonty.org>2017-06-15 14:43:22 -0700
committerIgor Babaev <igor@askmonty.org>2017-06-16 09:50:57 -0700
commitcf4a6abea12fcc957c81753be084104455f3cd9b (patch)
tree23ff672276b4d586154045ccd31a2020d18ddcaa /sql/item_windowfunc.cc
parentf73507e68526b491c2e1d35293602d4caf577436 (diff)
downloadmariadb-git-cf4a6abea12fcc957c81753be084104455f3cd9b.tar.gz
Fixed the bug mdev-13064.
This is another attempt to fix the bug mdev-12992. This patch introduces st_select_lex::context_analysis_place for the place in SELECT where context analysis is currently performed. It's similar to st_select_lex::parsing_place, but it is used at the preparation stage.
Diffstat (limited to 'sql/item_windowfunc.cc')
-rw-r--r--sql/item_windowfunc.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item_windowfunc.cc b/sql/item_windowfunc.cc
index 59a22c63ed5..27b007201c5 100644
--- a/sql/item_windowfunc.cc
+++ b/sql/item_windowfunc.cc
@@ -71,7 +71,7 @@ Item_window_func::fix_fields(THD *thd, Item **ref)
{
DBUG_ASSERT(fixed == 0);
- enum_parsing_place place= thd->lex->current_select->parsing_place;
+ enum_parsing_place place= thd->lex->current_select->context_analysis_place;
if (!(place == SELECT_LIST || place == IN_ORDER_BY))
{