From c8bb1fd35367b4b9145061e5d60a49b571d41668 Mon Sep 17 00:00:00 2001 From: pedrocarlo Date: Thu, 6 Feb 2025 23:43:30 -0300 Subject: [PATCH] unreachable to agg and record types, as it should not be possible to pass them to json_quote --- core/json/mod.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/json/mod.rs b/core/json/mod.rs index cdb1d8ed6..5d156e6d7 100644 --- a/core/json/mod.rs +++ b/core/json/mod.rs @@ -706,8 +706,7 @@ pub fn json_quote(value: &OwnedValue) -> crate::Result { 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!() } } }