Make path_recv() and poly_recv() reject paths/polygons containing no points.
authorTom Lane <[email protected]>
Tue, 18 Dec 2007 00:04:16 +0000 (00:04 +0000)
committerTom Lane <[email protected]>
Tue, 18 Dec 2007 00:04:16 +0000 (00:04 +0000)
commitfe1782dfb6b24cb764033a4de0ceb28ca987c064
tree62e8e91f830f7f775303b8aa0ec8e8692d9e7724
parentfbcb3d01121bb3931f8270fad460c07e11dc6bfe
Make path_recv() and poly_recv() reject paths/polygons containing no points.
The zero-point case is sensible so far as the data structure is concerned,
so maybe we ought to allow it sometime; but right now the textual input
routines for these types don't allow it, and it seems that not all the
functions for the types are prepared to cope.
Report and patch by Merlin Moncure.
src/backend/utils/adt/geo_ops.c