prisma-engines
3f298657 - fix: cast money columns to numeric (#5705)

Commit
182 days ago
fix: cast money columns to numeric (#5705) [TML-1657](https://linear.app/prisma-company/issue/TML-1657/fix-dbmoney-parsing-issues) Parsing money values returned from Postgres is incredibly complicated due to it being dependent on locale and accepting a huge number of formats. There's an easy trick to avoid all of that: do what we do for enums and cast all money columns to `numeric`. This also allows us to implement it once for both relationJoins and non-relationJoins code and it conforms to our old behavior of always just returning the plain number, while keeping the implementation simple. Fixes https://github.com/prisma/prisma/issues/27570
Author
Parents
Loading