From 2d076c79a746c6c383c716c84e092dac7b6b1fcd Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Tue, 5 Jul 2022 11:36:10 +0100 Subject: [PATCH] Format SQL Durations as a string format --- lib/src/sql/duration.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/sql/duration.rs b/lib/src/sql/duration.rs index 0525f69c..6f7289ad 100644 --- a/lib/src/sql/duration.rs +++ b/lib/src/sql/duration.rs @@ -114,7 +114,7 @@ impl Serialize for Duration { if is_internal_serialization() { serializer.serialize_newtype_struct("Duration", &self.0) } else { - serializer.serialize_some(&self.0) + serializer.serialize_some(&self.to_string()) } } }