summaryrefslogtreecommitdiff
path: root/sql/item_windowfunc.h
diff options
context:
space:
mode:
authorIgor Babaev <igor@askmonty.org>2017-02-03 15:50:25 -0800
committerIgor Babaev <igor@askmonty.org>2017-02-03 15:50:25 -0800
commit20aae56efa5aba90893e602ea87af2f14d161b10 (patch)
tree4bc7a24424484ece548b4c1220cc6becd36b7c47 /sql/item_windowfunc.h
parentbc12d993d7bc94a9533028a258afc7e4ceb21e92 (diff)
downloadmariadb-git-20aae56efa5aba90893e602ea87af2f14d161b10.tar.gz
Fixed bug mdev-10660.
The method Item_sum::print did not print opening '(' after the name of simple window functions (like rank, dense_rank etc). As a result the view definitions with such window functions were formed invalid in .frm files.
Diffstat (limited to 'sql/item_windowfunc.h')
-rw-r--r--sql/item_windowfunc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item_windowfunc.h b/sql/item_windowfunc.h
index 15e5c9a7c5b..2beed69c0fa 100644
--- a/sql/item_windowfunc.h
+++ b/sql/item_windowfunc.h
@@ -127,7 +127,7 @@ public:
}
const char*func_name() const
{
- return "row_number(";
+ return "row_number";
}
Item *get_copy(THD *thd, MEM_ROOT *mem_root)