From 6c82529d851de9bacdcf07f6192c28612a61d046 Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Fri, 10 Feb 2017 09:49:32 +0000 Subject: [PATCH] JSON Patch expects only array in SQL, not object --- sql/data.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/data.go b/sql/data.go index 13b81a79..fb606147 100644 --- a/sql/data.go +++ b/sql/data.go @@ -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"}} }