From 8ac4af317f8dc3017f9e983533cdde63e27384f2 Mon Sep 17 00:00:00 2001 From: Chris Tsang Date: Fri, 15 Oct 2021 10:47:35 +0800 Subject: [PATCH] Revert "Fix SQLite `chrono::NaiveTime` binding before launchbadge/sqlx#1459 being merged and released" This reverts commit 2ec9698f713d542bc12c98744bf844d99550e97b. --- src/driver/sqlx_sqlite.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/driver/sqlx_sqlite.rs b/src/driver/sqlx_sqlite.rs index 7a9d7e0c0..8f58b0a2c 100644 --- a/src/driver/sqlx_sqlite.rs +++ b/src/driver/sqlx_sqlite.rs @@ -39,7 +39,7 @@ macro_rules! bind_params_sqlx_sqlite { } else if value.is_date() { query.bind(value.as_ref_date()) } else if value.is_time() { - query.bind(value.as_ref_time().map(|t| t.format("%T.f").to_string())) + query.bind(value.as_ref_time()) } else if value.is_date_time() { query.bind(value.as_ref_date_time()) } else if value.is_decimal() {