This commit is contained in:
2023-11-05 13:34:59 +01:00
parent d9b04c8ea1
commit fbaf3ae1c2

View File

@@ -146,6 +146,7 @@ impl FromVecExpression<Book> for Book {
},
year: match &value[10] {
sql_parse::Expression::Integer(v) => v.0,
sql_parse::Expression::Unary { .. } => 0,
_ => panic!("Book.year"),
},
}