From 0a7e93d799fad49533fe328b57cfc7a0e9be76e5 Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Wed, 14 Sep 2016 21:49:27 +0100 Subject: [PATCH] Allow bound params for DIFF, MERGE, CONTENT --- sql/data.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sql/data.go b/sql/data.go index 92343f7f..0a3e39b1 100644 --- a/sql/data.go +++ b/sql/data.go @@ -94,7 +94,7 @@ func (p *Parser) parseDiff() (exp []Expr, err error) { one := &DiffExpression{} - tok, lit, err := p.shouldBe(JSON, ARRAY) + tok, lit, err := p.shouldBe(JSON, ARRAY, PARAM) if err != nil { return nil, &ParseError{Found: lit, Expected: []string{"json"}} } @@ -116,7 +116,7 @@ func (p *Parser) parseMerge() (exp []Expr, err error) { one := &MergeExpression{} - tok, lit, err := p.shouldBe(JSON) + tok, lit, err := p.shouldBe(JSON, PARAM) if err != nil { return nil, &ParseError{Found: lit, Expected: []string{"json"}} } @@ -138,7 +138,7 @@ func (p *Parser) parseContent() (exp []Expr, err error) { one := &ContentExpression{} - tok, lit, err := p.shouldBe(JSON) + tok, lit, err := p.shouldBe(JSON, PARAM) if err != nil { return nil, &ParseError{Found: lit, Expected: []string{"json"}} }