[postgis-tickets] [SCM] PostGIS branch master updated. 3.4.0rc1-611-g3df8cad26
git at osgeo.org
git at osgeo.org
Fri Sep 22 01:23:10 PDT 2023
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "PostGIS".
The branch, master has been updated
via 3df8cad260549fe6f2eba41b24acb3def9331303 (commit)
from dfe511b0121740cfbc26c5aed19086ea19f6af9a (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 3df8cad260549fe6f2eba41b24acb3def9331303
Author: Sandro Santilli <strk at kbt.io>
Date: Fri Sep 22 10:22:19 2023 +0200
Add test for inequality operator
References #5175
diff --git a/regress/core/operators.sql b/regress/core/operators.sql
index 0b8a44e3b..346e0f825 100644
--- a/regress/core/operators.sql
+++ b/regress/core/operators.sql
@@ -79,10 +79,15 @@ select 'ab3',ST_MakeEnvelope(2,5,4,8) |>> ST_MakeEnvelope(2,2,4,4); --t
-- same as =
-select 'eq1',ST_MakeEnvelope(2,2,4,4) = ST_MakeEnvelope(2,2,4,4); -- f
-select 'eq2',ST_MakeEnvelope(2,4,4,8) = 'LINESTRING(2 4,4 8)'::geometry; -- t
+select 'eq1',ST_MakeEnvelope(2,2,4,4) = ST_MakeEnvelope(2,2,4,4); -- t
+select 'eq2',ST_MakeEnvelope(2,4,4,8) = 'LINESTRING(2 4,4 8)'::geometry; -- f
select 'eq3',ST_MakePoint(0,0) = ST_MakePoint(1,0); -- f
+-- inequality != <>
+
+select 'neq1',ST_MakeEnvelope(2,2,4,4) != ST_MakeEnvelope(2,2,4,4); -- f
+select 'neq2',ST_MakeEnvelope(2,4,4,8) <> 'LINESTRING(2 4,4 8)'::geometry; -- t
+
-- box centroid distance <->
select 'cd1', 'LINESTRING(0 0,0 10)'::geometry <->
diff --git a/regress/core/operators_expected b/regress/core/operators_expected
index 801e8bfec..28c2b86e7 100644
--- a/regress/core/operators_expected
+++ b/regress/core/operators_expected
@@ -44,6 +44,8 @@ ab3|t
eq1|t
eq2|f
eq3|f
+neq1|f
+neq2|t
cd1|4
bd1|0
bd2|1
-----------------------------------------------------------------------
Summary of changes:
regress/core/operators.sql | 9 +++++++--
regress/core/operators_expected | 2 ++
2 files changed, 9 insertions(+), 2 deletions(-)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list