summaryrefslogtreecommitdiff
path: root/sql/item_sum.h
diff options
context:
space:
mode:
authorVicențiu Ciorbaru <vicentiu@mariadb.org>2016-09-20 20:44:49 +0200
committerVicențiu Ciorbaru <vicentiu@mariadb.org>2016-09-24 15:12:34 +0200
commit9a5930bcdfc72f3b63569332205d8574a586247d (patch)
tree4150dfb558f0fb7a11bb1c5f01607c99d508ba4c /sql/item_sum.h
parente413c6e9e764469bc26ffd978e0fb6c84c4ff896 (diff)
downloadmariadb-git-9a5930bcdfc72f3b63569332205d8574a586247d.tar.gz
Implement first_value and last_value as window functions
Currently the implementation doesn't support removal, thus the computation is performed by running over the window frame again.
Diffstat (limited to 'sql/item_sum.h')
-rw-r--r--sql/item_sum.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item_sum.h b/sql/item_sum.h
index 16835441125..d7d583a6fed 100644
--- a/sql/item_sum.h
+++ b/sql/item_sum.h
@@ -350,7 +350,7 @@ public:
AVG_DISTINCT_FUNC, MIN_FUNC, MAX_FUNC, STD_FUNC,
VARIANCE_FUNC, SUM_BIT_FUNC, UDF_SUM_FUNC, GROUP_CONCAT_FUNC,
ROW_NUMBER_FUNC, RANK_FUNC, DENSE_RANK_FUNC, PERCENT_RANK_FUNC,
- CUME_DIST_FUNC, NTILE_FUNC
+ CUME_DIST_FUNC, NTILE_FUNC, FIRST_VALUE_FUNC, LAST_VALUE_FUNC
};
Item **ref_by; /* pointer to a ref to the object used to register it */