Skip to content

Commit

Permalink
fix: Add NUMERIC conversion in PG (#439)
Browse files Browse the repository at this point in the history
  • Loading branch information
brucexc authored Nov 29, 2024
1 parent 12cb5bf commit f837223
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/database/dialer/postgres/client_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ func (c *client) BatchUpdateNodes(ctx context.Context, data []*schema.BatchUpdat
values := make([]interface{}, 0)

for _, value := range data {
rawSQL += " WHEN ? THEN ?"
rawSQL += " WHEN ? THEN ?::numeric"

values = append(values, value.Address, value.Apy)
}
Expand Down

0 comments on commit f837223

Please sign in to comment.