- #2556, geography ST_Intersects results depending on insert order
- #2634, regression in sphere distance code
- #2697, invalid GeoJSON Polygon input crashes server process
+ - #2704, ST_DumpPoints of EMPTY geometries crashes server
* Code refactoring *
/* return early if nothing to do */
if (!lwgeom || lwgeom_is_empty(lwgeom)) {
+ MemoryContextSwitchTo(oldcontext);
funcctx = SRF_PERCALL_SETUP();
SRF_RETURN_DONE(funcctx);
}
SELECT 'CURVEPOLYGON(CIRCULARSTRING(0 0, 4 0, 4 4, 0 4, 0 0),(1 1, 3 3, 3 1, 1 1))'::geometry as geom
) as g
) j;
+
+SELECT '#2704', ST_DumpPoints('POLYGON EMPTY'::geometry);
+SELECT '#2704', ST_DumpPoints('MULTIPOLYGON EMPTY'::geometry);
+SELECT '#2704', ST_DumpPoints('MULTILINESTRING EMPTY'::geometry);
+SELECT '#2704', ST_DumpPoints('LINESTRING EMPTY'::geometry);
+SELECT '#2704', ST_DumpPoints('GEOMETRYCOLLECTION EMPTY'::geometry);