You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since the Numeric and Money types resolve to strings. Could someone point me in a good direction to get precision types being returned from my table (Not strings) since I'll need to preform operations on them.
case "numeric", "pg_catalog.numeric", "money":
// Since the Go standard library does not have a decimal type, lib/pq
// returns numerics as strings.
//
// https://github.com/lib/pq/issues/648
if notNull {
return "string"
}
return "sql.NullString"```
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Since the Numeric and Money types resolve to strings. Could someone point me in a good direction to get precision types being returned from my table (Not strings) since I'll need to preform operations on them.
Beta Was this translation helpful? Give feedback.
All reactions