unreachable to agg and record types, as it should not be possible to pass them to json_quote

This commit is contained in:
pedrocarlo 2025-02-06 23:43:30 -03:00
parent b678375c69
commit c8bb1fd353

View file

@ -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!()
}
}
}