We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f684c2c commit f02dc33Copy full SHA for f02dc33
src/interval_norm.rs
@@ -81,6 +81,7 @@ impl IntervalNorm {
81
pub fn is_zeroed(&self) -> bool {
82
self.years == 0
83
&& self.months == 0
84
+ && self.days == 0
85
&& self.hours == 0
86
&& self.minutes == 0
87
&& self.seconds == 0
src/pg_interval.rs
@@ -312,6 +312,13 @@ mod tests {
312
assert_eq!(String::from("-01:10:15"), output);
313
}
314
315
+ #[test]
316
+ fn test_postgres_19(){
317
+ let interval = Interval::new(0, 3, 0);
318
+ let output = interval.to_postgres();
319
+ assert_eq!(String::from("3 days"), output);
320
+ }
321
+
322
#[test]
323
fn test_sql_1() {
324
let interval = Interval::new(12, 0, 0);
0 commit comments