summaryrefslogtreecommitdiff
path: root/sql/item_windowfunc.h
diff options
context:
space:
mode:
authorzhzhzoo <zhzhzoo@gmail.com>2018-03-17 01:22:53 +0800
committerVicențiu Ciorbaru <vicentiu@mariadb.org>2018-08-25 18:47:14 +0300
commit2a361ebe1b9c52eadfe811a219a89df6a0d6e3ea (patch)
treec7412974df44d3b7a9f01fe3e9a8a269a057a664 /sql/item_windowfunc.h
parentc826b6b8da3c9ee89ab457155bae96310213e5a1 (diff)
downloadmariadb-git-2a361ebe1b9c52eadfe811a219a89df6a0d6e3ea.tar.gz
MDEV-15204: lag/lead function order list mandatory
Diffstat (limited to 'sql/item_windowfunc.h')
-rw-r--r--sql/item_windowfunc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/item_windowfunc.h b/sql/item_windowfunc.h
index e5afb9e1555..21270733051 100644
--- a/sql/item_windowfunc.h
+++ b/sql/item_windowfunc.h
@@ -792,6 +792,8 @@ public:
case Item_sum::DENSE_RANK_FUNC:
case Item_sum::PERCENT_RANK_FUNC:
case Item_sum::CUME_DIST_FUNC:
+ case Item_sum::LAG_FUNC:
+ case Item_sum::LEAD_FUNC:
return true;
default:
return false;