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"), }, }