Skip to content

Commit

Permalink
Fix float32 Postgres serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
exAspArk committed Nov 8, 2024
1 parent 2073671 commit 2b4bda3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ func (proxy *Proxy) generateDataRow(rows *sql.Rows, cols []*sql.ColumnType) (*pg
case "int64", "*big.Int":
var value sql.NullInt64
valuePtrs[i] = &value
case "float64":
case "float64", "float32":
var value sql.NullFloat64
valuePtrs[i] = &value
case "string":
Expand Down

0 comments on commit 2b4bda3

Please sign in to comment.