From ef31701349ebc460f15f46a6724f6e459c9cb282 Mon Sep 17 00:00:00 2001 From: Haroun Oujihi Date: Sat, 7 Oct 2023 14:36:16 +0100 Subject: [PATCH] impl try from Optional NaiveDate --- sql/src/value.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sql/src/value.rs b/sql/src/value.rs index 1cfc9bc2a..e639ea580 100644 --- a/sql/src/value.rs +++ b/sql/src/value.rs @@ -448,6 +448,8 @@ impl_try_from_to_option!(i32); impl_try_from_to_option!(i64); impl_try_from_to_option!(f32); impl_try_from_to_option!(f64); +impl_try_from_to_option!(NaiveDateTime); +impl_try_from_to_option!(NaiveDate); impl std::fmt::Display for NumberValue { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {