From 0292140d3c932daa97ffd53d57e107f5465ec1ed Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Wed, 9 Nov 2016 15:16:09 +0000 Subject: [PATCH] Enable NOW keyword as shortcut for now() in SQL --- sql/exprs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/exprs.go b/sql/exprs.go index 02dca793..feaa8e62 100644 --- a/sql/exprs.go +++ b/sql/exprs.go @@ -435,7 +435,7 @@ func (p *parser) parsePart() (exp Expr, err error) { MUL, ID, IDENT, THING, NULL, VOID, EMPTY, MISSING, 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()