bojanz / currency

Currency handling for Go.

Home Page:https://pkg.go.dev/github.com/bojanz/currency

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

unsupported type []unit8 with pq driver

rengas opened this issue · comments

I am using PQ driver panics at this line as the type of src is []unit8

input := src.(string)

maybe should check for types. something like the following

https://github.com/rengas/currency/blob/253a204a22fbe171270075154ea9076769c8b87c/amount.go#L349

@rengas Hi, could I get a schema & query that would allow me to reproduce the panic?

Hi @bojanz I can take that up and solve. Please assign it to me!