]> granicus.if.org Git - postgis/commitdiff
Fix bug in lwgeom_le
authorRaúl Marín Rodríguez <rmrodriguez@carto.com>
Tue, 2 Jul 2019 08:59:24 +0000 (08:59 +0000)
committerRaúl Marín Rodríguez <rmrodriguez@carto.com>
Tue, 2 Jul 2019 08:59:24 +0000 (08:59 +0000)
References #4445
Closes https://github.com/postgis/postgis/pull/428

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

NEWS
postgis/lwgeom_btree.c

diff --git a/NEWS b/NEWS
index 26afb5caf8574a8cc8781c3338629dcb4819aa24..7a8272dbfd9ad6bef6533e61cce82d345a5b62bd 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -9,6 +9,7 @@ PostGIS 2.4.8
   - #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
index cfca3be4a9dd4726f00e4cbdd3d336aa24386b91..f310f54c173a97945cf99b227be784d6fe62b47f 100644 (file)
@@ -68,7 +68,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);