prisma / quaint

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

fix(sqlite): float columns should return floats #380

Closed Weakky closed 2 years ago

Weakky commented 2 years ago

Overview

fixes https://github.com/prisma/prisma-engines/issues/2991

Float columns on SQLite are migrated as REAL. However, REAL columns were coerced as BigDecimal which are then coerced as Decimal JS side.

We're now only treating Decimal as BigDecimal, thus keeping Float columns as Float.