Make path_recv() and poly_recv() reject paths/polygons containing no points.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 18 Dec 2007 00:04:22 +0000 (00:04 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 18 Dec 2007 00:04:22 +0000 (00:04 +0000)
commitbf84c13f3edff6af36a1c60d8277e64575e7ee30
tree3eef8a5587ba33060ea1d0f252c4281755b73da4
parent712f6a8c6fa9847e5c0a5fb1fedf1da1a6489ea4
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