summaryrefslogtreecommitdiff
path: root/sql/lex.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/lex.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/lex.h')
-rw-r--r--sql/lex.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/lex.h b/sql/lex.h
index d1762b2b20e..90dac2eb294 100644
--- a/sql/lex.h
+++ b/sql/lex.h
@@ -695,6 +695,7 @@ static SYMBOL sql_functions[] = {
{ "DATE_SUB", SYM(DATE_SUB_INTERVAL)},
{ "DENSE_RANK", SYM(DENSE_RANK_SYM)},
{ "EXTRACT", SYM(EXTRACT_SYM)},
+ { "FIRST_VALUE", SYM(FIRST_VALUE_SYM)},
{ "GROUP_CONCAT", SYM(GROUP_CONCAT_SYM)},
{ "MAX", SYM(MAX_SYM)},
{ "MID", SYM(SUBSTRING)}, /* unireg function */