Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[improvedQueryRaw] Sqlite returns Decimal for Float columns #2991

Closed
Weakky opened this issue Jun 20, 2022 · 0 comments · Fixed by prisma/quaint#380
Closed

[improvedQueryRaw] Sqlite returns Decimal for Float columns #2991

Weakky opened this issue Jun 20, 2022 · 0 comments · Fixed by prisma/quaint#380
Assignees
Milestone

Comments

@Weakky
Copy link
Member

Weakky commented Jun 20, 2022

Reproduction

Consider this datamodel:

model Test {
  id Int @id
  float Float
}
  1. Migrate it
  2. Create a row
  3. Try raw querying it with prisma (eg: SELECT * FROM Test)
  4. See float being coerced as Decimal JS side

Expected result

float should remain of type float JS side

@Weakky Weakky self-assigned this Jun 20, 2022
@Weakky Weakky added this to the 4.0.x milestone Jun 20, 2022
@Weakky Weakky changed the title [improvedQueryRaw] Sqlite returns Decimal for Floats [improvedQueryRaw] Sqlite returns Decimal for Float columns Jun 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant