mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-04 18:18:03 +00:00
unreachable to agg and record types, as it should not be possible to pass them to json_quote
This commit is contained in:
parent
b678375c69
commit
c8bb1fd353
1 changed files with 1 additions and 2 deletions
|
@ -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!()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue