Skip to content

Commit

Permalink
fix: one more geometry match tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jayy-lmao committed Nov 6, 2024
1 parent 7f6df9f commit fe99e48
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions sqlx-test/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -247,10 +247,8 @@ macro_rules! Postgres_query_for_test_prepared_geometric_type {
#[macro_export]
macro_rules! Postgres_query_for_test_prepared_geometric_array_type {
() => {
"SELECT (
SELECT bool_and(geo1 ~= geo2)
FROM unnest({0}) as geo1,
unnest($1) as geo2
)::int4, {0}, $2"
"SELECT bool_and(geo1.geometry ~= geo2.geometry)::int4
FROM unnest({0}) WITH ORDINALITY AS geo1(geometry, idx)
JOIN unnest($1) WITH ORDINALITY AS geo2(geometry, idx) ON geo1.idx = geo2.idx;"
};
}

0 comments on commit fe99e48

Please sign in to comment.