Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
unexclude common_types test for pg, neon, and PS
  • Loading branch information
Druue committed May 23, 2024
1 parent 2a74da1 commit 374fc28
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,7 @@ mod scalar_relations {
// TODO: fix https://github.com/prisma/team-orm/issues/684 and unexclude DAs.
// On napi, this currently fails with "P2023":
// `Inconsistent column data: Unexpected conversion failure for field Child.bInt from Number(14324324234324.0) to BigInt`.
#[connector_test(
schema(schema_common),
exclude(Postgres("pg.js", "neon.js"), Vitess("planetscale.js"))
)]
#[connector_test(schema(schema_common))]
async fn common_types(runner: Runner) -> TestResult<()> {
create_common_children(&runner).await?;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,11 @@ fn coerce_json_relation_to_pv(value: serde_json::Value, rs: &RelationSelection)

Ok(PrismaValue::Object(map))
}
serde_json::Value::String(s) => {
let v = serde_json::from_str(&s)?;

coerce_json_relation_to_pv(v, rs)
}
x => unreachable!("Unexpected value when deserializing JSON relation data: {x:?}"),
}
}
Expand Down

0 comments on commit 374fc28

Please sign in to comment.