Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

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

Merged
merged 2 commits into from
Jun 21, 2022

Conversation

Weakky
Copy link
Member

@Weakky Weakky commented Jun 20, 2022

Overview

fixes prisma/prisma-engines#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.

@Weakky Weakky added this to the 4.0.x milestone Jun 20, 2022
@Weakky Weakky changed the title fix: float columns should return floats fix(sqlite): float columns should return floats Jun 20, 2022
@@ -5,7 +5,7 @@ use super::{Column, Table};
/// Used mainly for the transformation of a `INSERT` into a `MERGE`.
#[derive(Debug, PartialEq, Clone)]
pub enum IndexDefinition<'a> {
Single(Column<'a>),
Single(Box<Column<'a>>),
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -1 +1 @@
1.56.0
1.57.0
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

required by some dependency ; check the previous commit test failure if you need more info

@Weakky Weakky merged commit ca97fca into main Jun 21, 2022
@Weakky Weakky deleted the fix/float-should-be-float branch June 21, 2022 09:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[improvedQueryRaw] Sqlite returns Decimal for Float columns
2 participants