From 2d17f69a8c638bbed30170b5cd06abde29b800eb Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Fri, 20 Apr 2018 12:02:58 +0100 Subject: [PATCH] Ensure all SQL THINGs are processed correctly from JSON --- sql/ast.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/ast.go b/sql/ast.go index 18ac70a1..009944a8 100644 --- a/sql/ast.go +++ b/sql/ast.go @@ -749,7 +749,7 @@ type Thing struct { func ParseThing(val string) *Thing { r := strings.NewReader(val) s := newScanner(r) - if t, _, v := s.scanThing(); t == THING { + if t, _, v := s.scanIdiom(); t == THING { return v.(*Thing) } return nil