Skip to content

Commit

Permalink
fix: array compatible geometric comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
jayy-lmao committed Aug 21, 2024
1 parent b290256 commit 1cbd7e4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sqlx-test/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,6 @@ macro_rules! Postgres_query_for_test_prepared_type {
#[macro_export]
macro_rules! Postgres_query_for_test_prepared_geometric_type {
() => {
"SELECT ({0} @= $1)::int4, {0}, $2
"
"SELECT (CASE WHEN pg_typeof({0})::text LIKE '%[]' THEN (array_to_string({0}, '') = array_to_string($1, ''))::int4 ELSE ({0} @= $1)::int4 END), {0}, $2"
};
}

0 comments on commit 1cbd7e4

Please sign in to comment.