summaryrefslogtreecommitdiff
path: root/sql/sql_window.cc
diff options
context:
space:
mode:
authorIgor Babaev <igor@askmonty.org>2016-04-01 14:05:51 -0700
committerIgor Babaev <igor@askmonty.org>2016-04-01 14:05:51 -0700
commit0b89c614133a50ca2733debf8b176a69dc750d96 (patch)
treea8ec73fa60e67a4e8358b0beeeb8f5dbd6e7795d /sql/sql_window.cc
parent2e4bd4407ed73b45d017ef160b2964aff1af7c6f (diff)
downloadmariadb-git-0b89c614133a50ca2733debf8b176a69dc750d96.tar.gz
Fixed a problem with --ps-protocol.
Window names has to be resolved only once.
Diffstat (limited to 'sql/sql_window.cc')
-rw-r--r--sql/sql_window.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/sql_window.cc b/sql/sql_window.cc
index 1568409fe04..bb95627ceae 100644
--- a/sql/sql_window.cc
+++ b/sql/sql_window.cc
@@ -9,6 +9,8 @@
bool
Window_spec::check_window_names(List_iterator_fast<Window_spec> &it)
{
+ if (window_names_are_checked)
+ return false;
char *name= this->name();
char *ref_name= window_reference();
it.rewind();
@@ -54,6 +56,7 @@ Window_spec::check_window_names(List_iterator_fast<Window_spec> &it)
my_error(ER_WRONG_WINDOW_SPEC_NAME, MYF(0), ref_name);
return true;
}
+ window_names_are_checked= true;
return false;
}