Enable NOW keyword as shortcut for now() in SQL

This commit is contained in:
Tobie Morgan Hitchcock 2016-11-09 15:16:09 +00:00
parent b0f8ed6b56
commit 0292140d3c

View file

@ -435,7 +435,7 @@ func (p *parser) parsePart() (exp Expr, err error) {
MUL, ID, IDENT, THING, MUL, ID, IDENT, THING,
NULL, VOID, EMPTY, MISSING, NULL, VOID, EMPTY, MISSING,
TRUE, FALSE, STRING, REGION, NUMBER, DOUBLE, TRUE, FALSE, STRING, REGION, NUMBER, DOUBLE,
DATE, TIME, DURATION, JSON, ARRAY, PARAM, LPAREN, NOW, DATE, TIME, DURATION, JSON, ARRAY, PARAM, LPAREN,
} }
tok, lit, _ := p.scan() tok, lit, _ := p.scan()