From 79b2be164dd834241349109dfd22a5d02ca11b7d Mon Sep 17 00:00:00 2001 From: Egor Vorontsov Date: Sat, 8 Nov 2025 02:54:59 +0300 Subject: [PATCH] Implemented Some-typed literals in SQL. --- crates/expr/src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/expr/src/lib.rs b/crates/expr/src/lib.rs index 2d9b3cdc5ab..fd77152fd5e 100644 --- a/crates/expr/src/lib.rs +++ b/crates/expr/src/lib.rs @@ -234,6 +234,9 @@ pub(crate) fn parse(value: &str, ty: &AlgebraicType) -> anyhow::Result anyhow::Result to_bytes(), t if t.is_identity() => to_identity(), t if t.is_connection_id() => to_connection_id(), + t if t.is_option() => to_option(), t => bail!("Literal values for type {} are not supported", fmt_algebraic_type(t)), } }