Skip to content

Commit

Permalink
fix: re-introduce comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
jayy-lmao committed Nov 5, 2024
1 parent 42f58a4 commit 82a21c3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/postgres/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -494,13 +494,13 @@ test_type!(_cube<Vec<sqlx::postgres::types::PgCube>>(Postgres,

#[cfg(any(postgres_12, postgres_13, postgres_14, postgres_15))]
test_type!(point<sqlx::postgres::types::PgPoint>(Postgres,
"point(2.2,-3.4)" == sqlx::postgres::types::PgPoint { x: 2.2, y:-3.4 },
"point(2.2,-3.4)" @= sqlx::postgres::types::PgPoint { x: 2.2, y:-3.4 },
));

#[cfg(any(postgres_12, postgres_13, postgres_14, postgres_15))]
test_type!(_point<Vec<sqlx::postgres::types::PgPoint>>(Postgres,
"array[point(2,3),point(2.1,3.4)]" == vec![sqlx::postgres::types::PgPoint { x:2., y: 3. }, sqlx::postgres::types::PgPoint { x:2.1, y: 3.4 }],
"array[point(2.2,-3.4)]" == vec![sqlx::postgres::types::PgPoint { x: 2.2, y: -3.4 }],
"array[point(2,3),point(2.1,3.4)]" @= vec![sqlx::postgres::types::PgPoint { x:2., y: 3. }, sqlx::postgres::types::PgPoint { x:2.1, y: 3.4 }],
"array[point(2.2,-3.4)]" @= vec![sqlx::postgres::types::PgPoint { x: 2.2, y: -3.4 }],
));

#[cfg(feature = "rust_decimal")]
Expand Down

0 comments on commit 82a21c3

Please sign in to comment.