Ensure all SQL THINGs are processed correctly from JSON

This commit is contained in:
Tobie Morgan Hitchcock 2018-04-20 12:02:58 +01:00
parent 83edea8a66
commit 2d17f69a8c

View file

@ -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