Decimals seems to return a string under PostgreSQL, but in MySQL, it returns a float. Using this definition:
front_bumper_estimate: {
type: sequelize.DECIMAL(10, 2),
allowNull: true,
validate: {
isDecimal: true
}
}
It returns front_bumper_estimate: "125.00" using PostgreSQL but front_bumper_estimate: 125.00 in MySQL. Is there any way to force it to parse it to a float under PostgreSQL?
EDIT: For the moment, I'm just going to add a getter that parses the string to a float.
Decimals seems to return a string under PostgreSQL, but in MySQL, it returns a float. Using this definition:
It returns
front_bumper_estimate: "125.00"using PostgreSQL butfront_bumper_estimate: 125.00in MySQL. Is there any way to force it to parse it to a float under PostgreSQL?EDIT: For the moment, I'm just going to add a getter that parses the string to a float.