Skip to content

Commit

Permalink
DRIVER_ADAPTERS_BRANCH=fix/bigint-conversion
Browse files Browse the repository at this point in the history
remove special handling for "$__prisma_null"
  • Loading branch information
Druue committed May 23, 2024
1 parent 1994310 commit 75a4df4
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions query-engine/driver-adapters/src/conversion/js_to_quaint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -218,15 +218,9 @@ pub fn js_value_to_quaint(
// DbNull
serde_json::Value::Null => Ok(QuaintValue::null_json()),
// JsonNull
serde_json::Value::String(s) => {
if s == "$__prisma_null" {
Ok(QuaintValue::json(serde_json::Value::Null))
} else {
serde_json::from_str(&s)
.map_err(|_| conversion_error!("Failed to parse json"))
.map(QuaintValue::json)
}
}
serde_json::Value::String(s) => serde_json::from_str(&s)
.map_err(|_| conversion_error!("Failed to parse json"))
.map(QuaintValue::json),
json => Ok(QuaintValue::json(json)),
}
}
Expand Down

0 comments on commit 75a4df4

Please sign in to comment.