Skip to content

Commit 5cecf98

Browse files
firebladedabonander
andcommitted
Add postgres Version Check
Co-Authored-By: Austin Bonander <austin.bonander@gmail.com>
1 parent 75b45c3 commit 5cecf98

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

tests/postgres/types.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -665,6 +665,12 @@ test_prepared_type!(interval<PgInterval>(
665665
days: 0,
666666
microseconds: (3 * 3_600 + 10 * 60 + 20) * 1_000_000 + 116100
667667
},
668+
));
669+
670+
// Not supported before Postgres 17
671+
#[cfg(any(postgres = "17", postgres = "18"))]
672+
test_prepared_type!(interval_infinity<PgInterval>(
673+
Postgres,
668674
"INTERVAL 'infinity'"
669675
== PgInterval::INFINITY,
670676
"INTERVAL '-infinity'"

0 commit comments

Comments
 (0)