Skip to content

Commit

Permalink
trying to fix decimal parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillDanshin committed Jan 10, 2019
1 parent 97e5899 commit bf5252c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dataparser.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"io"
"reflect"
"strconv"
"strings"
"time"
)

Expand Down Expand Up @@ -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)
}
}

0 comments on commit bf5252c

Please sign in to comment.