Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
xuefengze committed Jan 23, 2024
1 parent 9a304ee commit fbc6252
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion e2e_test/batch/types/interval.slt.part
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,6 @@ select 'P12Y2M30DT4H5M0.1234567S'::interval;
----
12 years 2 mons 30 days 04:05:00.123456


# The following is an overflow bug present in PostgreSQL 15.2
# Their `days` overflows to a negative value, leading to the latter smaller
# than the former. We report an error in this case.
Expand Down
3 changes: 2 additions & 1 deletion src/common/src/types/interval.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1469,6 +1469,7 @@ impl FromStr for Interval {
}
}

#[cfg(test)]
mod tests {
use interval::test_utils::IntervalTestExt;

Expand Down Expand Up @@ -1537,7 +1538,7 @@ mod tests {
assert_eq!(
interval,
Interval::from_month(14) + Interval::from_days(3) + Interval::from_minutes(5)
)
);
}

#[test]
Expand Down

0 comments on commit fbc6252

Please sign in to comment.