JSON Patch expects only array in SQL, not object

This commit is contained in:
Tobie Morgan Hitchcock 2017-02-10 09:49:32 +00:00
parent b724d864f8
commit 6c82529d85

View file

@ -112,7 +112,7 @@ func (p *parser) parseDiff() (exp []Expr, err error) {
one := &DiffExpression{}
tok, lit, err := p.shouldBe(JSON, ARRAY, PARAM)
tok, lit, err := p.shouldBe(ARRAY, PARAM)
if err != nil {
return nil, &ParseError{Found: lit, Expected: []string{"json"}}
}