Skip to content

Commit e598899

Browse files
ovrMazterQyou
andauthored
Apply suggestion from @MazterQyou
Co-authored-by: Alex Qyoun-ae <[email protected]>
1 parent b8319e2 commit e598899

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

rust/cubesql/pg-srv/src/values/interval.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,14 @@ impl IntervalValue {
6666
}
6767
}
6868

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+
6977
if self.hours != 0 || self.mins != 0 || self.secs != 0 || self.usecs != 0 {
7078
if self.hours < 0 || self.mins < 0 || self.secs < 0 || self.usecs < 0 {
7179
res.push('-')

0 commit comments

Comments
 (0)