From ba3323ae1cc2c9a0ea94a2ed2ec6e845f774437d Mon Sep 17 00:00:00 2001 From: Paul Ramsey Date: Mon, 20 Jun 2011 21:15:48 +0000 Subject: [PATCH] ST_Dump with GSerialized POINT EMPTY and EWKT/AsText mismatch (#746) git-svn-id: http://svn.osgeo.org/postgis/trunk@7436 b70326c6-7e19-0410-871a-916f4a2858ee --- postgis/lwgeom_dump.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/postgis/lwgeom_dump.c b/postgis/lwgeom_dump.c index eafbfb596..f047135b9 100644 --- a/postgis/lwgeom_dump.c +++ b/postgis/lwgeom_dump.c @@ -126,6 +126,8 @@ Datum LWGEOM_dump(PG_FUNCTION_ARGS) /* Handled simple geometries */ if ( ! state->root ) SRF_RETURN_DONE(funcctx); + /* Return nothing for empties */ + if ( lwgeom_is_empty(state->root) ) SRF_RETURN_DONE(funcctx); if ( ! lwgeom_is_collection(state->root) ) { values[0] = "{}"; -- 2.50.1