From 2ec9698f713d542bc12c98744bf844d99550e97b Mon Sep 17 00:00:00 2001 From: Billy Chan Date: Thu, 30 Sep 2021 10:40:13 +0800 Subject: [PATCH] Fix SQLite `chrono::NaiveTime` binding before launchbadge/sqlx#1459 being merged and released --- 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 8f58b0a2c..1c1bc14e5 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()) + query.bind(value.as_ref_time().format("%T.f").to_string()) } else if value.is_date_time() { query.bind(value.as_ref_date_time()) } else if value.is_decimal() {