diff --git a/parser/src/validation.rs b/parser/src/validation.rs index 037bed2..741d0fd 100644 --- a/parser/src/validation.rs +++ b/parser/src/validation.rs @@ -373,7 +373,7 @@ fn type_from_literal_with_type_hint(lit: &Literal, hint: &DbType) -> Result DbType::String, Literal::Int(_) => DbType::Int, Literal::Uuid(_) => DbType::Uuid, - Literal::Some(l) => type_from_literal_with_type_hint(l, hint)?, + Literal::Some(l) => DbType::Option(Box::new(type_from_literal_with_type_hint(l, hint)?)), Literal::None => { if matches!(hint, DbType::Option(_)) { hint.clone()