mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-18 22:45:10 +01:00
unreachable to agg and record types, as it should not be possible to pass them to json_quote
This commit is contained in:
@@ -706,8 +706,7 @@ pub fn json_quote(value: &OwnedValue) -> crate::Result<OwnedValue> {
|
||||
OwnedValue::Blob(_) => crate::bail_constraint_error!("JSON cannot hold BLOB values"),
|
||||
OwnedValue::Null => Ok(OwnedValue::Text(Text::new(Rc::new("null".to_string())))),
|
||||
_ => {
|
||||
// TODO not too sure what message should be here
|
||||
crate::bail_parse_error!("Syntax error");
|
||||
unreachable!()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user