Enable setting fields to record ids

This commit is contained in:
Tobie Morgan Hitchcock 2016-09-07 16:59:01 +01:00
parent 9492ed7244
commit b82216af21

View file

@ -67,7 +67,7 @@ func (p *Parser) parseSet() (mul []Expr, err error) {
}
one.Op = tok
tok, lit, err = p.shouldBe(IDENT, NULL, VOID, NOW, DATE, TIME, TRUE, FALSE, STRING, REGION, NUMBER, DOUBLE, JSON, ARRAY, PARAM)
tok, lit, err = p.shouldBe(IDENT, THING, NULL, VOID, NOW, DATE, TIME, TRUE, FALSE, STRING, REGION, NUMBER, DOUBLE, JSON, ARRAY, PARAM)
if err != nil {
return nil, &ParseError{Found: lit, Expected: []string{"field value"}}
}