[postgis-tickets] r17578 - Fix bug in lwgeom_le

Raul raul at rmr.ninja
Tue Jul 2 01:59:24 PDT 2019


Author: algunenano
Date: 2019-07-02 01:59:24 -0700 (Tue, 02 Jul 2019)
New Revision: 17578

Modified:
   branches/2.4/NEWS
   branches/2.4/postgis/lwgeom_btree.c
Log:
Fix bug in lwgeom_le

References #4445
Closes https://github.com/postgis/postgis/pull/428


Modified: branches/2.4/NEWS
===================================================================
--- branches/2.4/NEWS	2019-07-02 08:44:46 UTC (rev 17577)
+++ branches/2.4/NEWS	2019-07-02 08:59:24 UTC (rev 17578)
@@ -9,6 +9,7 @@
   - #4327, Avoid pfree'ing the result of getenv (Raúl Marín)
   - #4406, Throw on invalid characters when decoding geohash (Raúl Marín)
   - #4440, Internal type lookups fail over FDW (Paul Ramsey)
+  - #4445, Fix bug in lwgeom_le (Raúl Marín)
 
 
 PostGIS 2.4.7

Modified: branches/2.4/postgis/lwgeom_btree.c
===================================================================
--- branches/2.4/postgis/lwgeom_btree.c	2019-07-02 08:44:46 UTC (rev 17577)
+++ branches/2.4/postgis/lwgeom_btree.c	2019-07-02 08:59:24 UTC (rev 17578)
@@ -68,7 +68,7 @@
 	int cmp = gserialized_cmp(g1, g2);
 	PG_FREE_IF_COPY(g1, 0);
 	PG_FREE_IF_COPY(g2, 1);
-	if (cmp == 0)
+	if (cmp <= 0)
 		PG_RETURN_BOOL(TRUE);
 	else
 		PG_RETURN_BOOL(FALSE);



More information about the postgis-tickets mailing list