OSDN Git Service

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:08 +0000 (00:04 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 18 Dec 2007 00:04:08 +0000 (00:04 +0000)
commitdbc632eb37e33c88345b84aa489514d5b3bb38cf
tree6aa8c54ff59930de61f02478e70988f71a16270b
parentcc04aaf9de48cc6246190b96310a669166cff29a
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