macros + sqlite: fix error for null-typed columns

This commit is contained in:
Austin Bonander
2020-03-16 20:55:19 -07:00
committed by Ryan Leckey
parent 2a76123bc3
commit 8328e07c97
8 changed files with 99 additions and 0 deletions

View File

@@ -66,6 +66,10 @@ impl TypeInfo for SqliteTypeInfo {
fn compatible(&self, other: &Self) -> bool {
self.affinity == other.affinity
}
fn is_null_type(&self) -> bool {
self.r#type == SqliteType::Null
}
}
impl<'de, T> Decode<'de, Sqlite> for Option<T>