]> granicus.if.org Git - postgis/commitdiff
Fix bug in lwgeom_le
authorRaúl Marín Rodríguez <rmrodriguez@carto.com>
Tue, 2 Jul 2019 09:00:14 +0000 (09:00 +0000)
committerRaúl Marín Rodríguez <rmrodriguez@carto.com>
Tue, 2 Jul 2019 09:00:14 +0000 (09:00 +0000)
References #4445

git-svn-id: http://svn.osgeo.org/postgis/branches/2.5@17579 b70326c6-7e19-0410-871a-916f4a2858ee

NEWS
postgis/lwgeom_btree.c

diff --git a/NEWS b/NEWS
index 9733d51af4125609c013d21b13bd6a8849ad5330..fde13ec945b0b9c11be44d7fc554688d77ff3d4f 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -11,6 +11,7 @@ PostGIS 2.5.3
   - #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
index c704364deed223d410c366de5dbbc34102139fef..95776a579d5191dbd4e2c98deec8c08bd3170bde 100644 (file)
@@ -69,7 +69,7 @@ Datum lwgeom_le(PG_FUNCTION_ARGS)
        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);