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
- #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
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);