[postgis-tickets] r17579 - Fix bug in lwgeom_le
Raul
raul at rmr.ninja
Tue Jul 2 02:00:14 PDT 2019
Author: algunenano
Date: 2019-07-02 02:00:14 -0700 (Tue, 02 Jul 2019)
New Revision: 17579
Modified:
branches/2.5/NEWS
branches/2.5/postgis/lwgeom_btree.c
Log:
Fix bug in lwgeom_le
References #4445
Modified: branches/2.5/NEWS
===================================================================
--- branches/2.5/NEWS 2019-07-02 08:59:24 UTC (rev 17578)
+++ branches/2.5/NEWS 2019-07-02 09:00:14 UTC (rev 17579)
@@ -11,6 +11,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.5.2
Modified: branches/2.5/postgis/lwgeom_btree.c
===================================================================
--- branches/2.5/postgis/lwgeom_btree.c 2019-07-02 08:59:24 UTC (rev 17578)
+++ branches/2.5/postgis/lwgeom_btree.c 2019-07-02 09:00:14 UTC (rev 17579)
@@ -69,7 +69,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