Closed SohumB closed 9 years ago
I don't think there's anything we can do here. I guess if you want to support huge numerics you'd have to use a custom json parser that would parse big numbers into some kinda module that can represent them. Maybe push the V8 team to add 64bit integer support? :trollface:
Yup, no dice here other than using a custom JSON parser
That is, postgres doesn't account for javascript's type limits when outputting its json, and
node-pg-types
can't use its logic for defaulting those types to string, because it just sees that json is coming down the wire. This affects at least bigints and arbitrary-precision numbers, possibly more things.What do we do? Can we do anything?