prisma / quaint

SQL Query AST and Visitor for Rust
Apache License 2.0
582 stars 62 forks source link

Avoid float precision drift on mysql #105

Closed tomhoule closed 4 years ago

tomhoule commented 4 years ago

This is not the right solution long term, but with this change, any single-precision float that gets into the database will come out the same. In very rare cases, we will instead treat an f64 as a f32 and lose precision.