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 b8319e2 commit e598899Copy full SHA for e598899
rust/cubesql/pg-srv/src/values/interval.rs
@@ -66,6 +66,14 @@ impl IntervalValue {
66
}
67
68
69
+ if self.days != 0 {
70
+ if self.days == 1 {
71
+ res.push_str(&format!("{:#?} day ", self.days));
72
+ } else {
73
+ res.push_str(&format!("{:#?} days ", self.days));
74
+ }
75
76
+
77
if self.hours != 0 || self.mins != 0 || self.secs != 0 || self.usecs != 0 {
78
if self.hours < 0 || self.mins < 0 || self.secs < 0 || self.usecs < 0 {
79
res.push('-')
0 commit comments