Alow @thing to be used as DEFAULT values in fields

This commit is contained in:
Tobie Morgan Hitchcock 2016-09-19 14:47:11 +01:00
parent 94c0f32ae4
commit 9436a752d8

View file

@ -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
}