Skip to content

Commit

Permalink
Fix SQLite chrono::NaiveTime binding before launchbadge/sqlx#1459 b…
Browse files Browse the repository at this point in the history
…eing merged and released
  • Loading branch information
billy1624 authored and tyt2y3 committed Sep 30, 2021
1 parent 17eea95 commit 2ec9698
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/driver/sqlx_sqlite.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 2ec9698

Please sign in to comment.