Closed Blacksmoke16 closed 2 years ago
You could either use FLOAT8
type in PG or use PG::Numeric
converter (if it doesn't work out of the box, try creating one, looking at PG::Enum for inspiration.
I was originally using FLOAT8, but need DECIMAL for the precision. But yea, I ended up just defining my own converter. Is that something you would want built in tho?
I think that it wouldn't be bad to have such a converter by default...
Currently when using a float column type other than REAL/DOUBLE PRECISION, it will throw a
PG::ResultSet#read returned a PG::Numeric. A (Float64 | Nil) was expected
Prob just need to add a converter to convert
PG::Numeric
type into the desired numeric type.