summaryrefslogtreecommitdiff
path: root/sql/lex.h
diff options
context:
space:
mode:
authorMichael Widenius <monty@askmonty.org>2012-09-05 18:23:51 +0300
committerMichael Widenius <monty@askmonty.org>2012-09-05 18:23:51 +0300
commitd618dfe32dfe004f3bfd6aa79a4fb96d1cc7999d (patch)
treeb0ce4ecfef749a529289a3e7a74192303bd67bb1 /sql/lex.h
parent5620937c058aa9f7cd3b122b40f8b9c94fa69997 (diff)
downloadmariadb-git-d618dfe32dfe004f3bfd6aa79a4fb96d1cc7999d.tar.gz
Added function last_value() which returns the last value but evalutes all arguments as a side effect.
Original patch by Eric Herman client/mysql.cc: Added LAST_VALUE mysql-test/r/last_value.result: Testing of LAST_VALUE mysql-test/t/last_value.test: Testing of LAST_VALUE sql/item_func.cc: Added LAST_VALUE() sql/item_func.h: Added LAST_VALUE() sql/lex.h: Added LAST_VALUE() sql/sql_yacc.yy: Added LAST_VALUE()
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 9f4369630a0..9bf4c439cb6 100644
--- a/sql/lex.h
+++ b/sql/lex.h
@@ -302,6 +302,7 @@ static SYMBOL symbols[] = {
{ "KILL", SYM(KILL_SYM)},
{ "LANGUAGE", SYM(LANGUAGE_SYM)},
{ "LAST", SYM(LAST_SYM)},
+ { "LAST_VALUE", SYM(LAST_VALUE)},
{ "LEADING", SYM(LEADING)},
{ "LEAVE", SYM(LEAVE_SYM)},
{ "LEAVES", SYM(LEAVES)},