From fbaf3ae1c21b1f4bf2e041dc24e9ad4f9649b134 Mon Sep 17 00:00:00 2001 From: Bulat Kurbanov Date: Sun, 5 Nov 2023 13:34:59 +0100 Subject: [PATCH] Fix --- src/types.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/types.rs b/src/types.rs index 8d3dbd1..23ae328 100644 --- a/src/types.rs +++ b/src/types.rs @@ -146,6 +146,7 @@ impl FromVecExpression for Book { }, year: match &value[10] { sql_parse::Expression::Integer(v) => v.0, + sql_parse::Expression::Unary { .. } => 0, _ => panic!("Book.year"), }, }