From 9436a752d853ec8d21646cc4130724dc1940666b Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Mon, 19 Sep 2016 14:47:11 +0100 Subject: [PATCH] Alow @thing to be used as DEFAULT values in fields --- sql/exprs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/exprs.go b/sql/exprs.go index dce2a118..92f282e4 100644 --- a/sql/exprs.go +++ b/sql/exprs.go @@ -227,7 +227,7 @@ func (p *parser) parseBoolean() (bool, error) { func (p *parser) parseDefault() (interface{}, error) { - tok, lit, err := p.shouldBe(NULL, NOW, DATE, TIME, TRUE, FALSE, NUMBER, DOUBLE, STRING, REGION, IDENT, ARRAY, JSON) + tok, lit, err := p.shouldBe(NULL, NOW, DATE, TIME, TRUE, FALSE, NUMBER, DOUBLE, STRING, REGION, IDENT, THING, ARRAY, JSON) if err != nil { return nil, err }