Results 344 comments of Jack Christensen
trafficstars

I don't know anything about GORM, but it looks like your trying to scan into `*net.IP`. That's not going to work unless GORM is doing some magic. `database/sql` doesn't support...

I don't know. Like I said I don't use GORM or any other Go ORM for that matter. I typically write my own SQL and mapping code more or less...

This is an edge case with the simple protocol and `database/sql`. One problem is that when using the simple protocol is the destination PostgreSQL type is unknown. The type has...

@aethanol It's still an issue with v5. Same fundamental problem though the internal implementation details differ. > One problem is that when using the simple protocol is the destination PostgreSQL...

It was a security fix.

🤷 There were no perfect solutions. A major release was infeasible (especially since this repo is already a major release behind, the current release is part of pgx v5). It...

Maybe... 🤷 shopspring decimal internally uses https://pkg.go.dev/math/big#Rat.Float64 can already overflow the `float64` to `+Inf`. The `float64` to `float32` does the same thing.

@ksankeerth You're welcome to it. But pgx v5 should be released within the next month and it has significant changes to the type system. You might want to build it...

I'm not sure all that you're trying to do, but there might be an easier way. First, if you know the structure of your result set you could use `Scan`...

> Am I reading that right that the QueryResultFormats query option impacts the result format of RawValues and not Values? Yes. > We know we could also leverage COPY for...