From bf5252c04d3f7b36956f735b30ffb59babe5eaa2 Mon Sep 17 00:00:00 2001 From: Kirill Danshin Date: Thu, 10 Jan 2019 21:31:24 +0300 Subject: [PATCH] trying to fix decimal parsing --- dataparser.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dataparser.go b/dataparser.go index 0a32cd9..94fa437 100644 --- a/dataparser.go +++ b/dataparser.go @@ -7,6 +7,7 @@ import ( "io" "reflect" "strconv" + "strings" "time" ) @@ -432,6 +433,9 @@ func newDataParser(t *TypeDesc, unquote bool) (DataParser, error) { } return &tupleParser{subParsers}, nil default: + if strings.Contains(t.Name, "Decimal") { + return &stringParser{unquote: unquote}, nil + } return nil, fmt.Errorf("type %s is not supported", t.Name) } }