From d4491d557b7a154dae42d9d5771ba2892ea67e4e Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Sat, 29 Oct 2016 18:46:48 +0100 Subject: [PATCH] Support JSON and ARRAYS in RETURN statements --- sql/return.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/return.go b/sql/return.go index 8f61367c..8584c683 100644 --- a/sql/return.go +++ b/sql/return.go @@ -20,7 +20,7 @@ func (p *parser) parseReturnStatement() (stmt *ReturnStatement, err error) { for { - tok, lit, err := p.shouldBe(NULL, NOW, DATE, TIME, TRUE, FALSE, STRING, NUMBER, DOUBLE, PARAM) + tok, lit, err := p.shouldBe(NULL, NOW, DATE, TIME, TRUE, FALSE, STRING, NUMBER, DOUBLE, THING, JSON, ARRAY, PARAM) if err != nil { return nil, err }