]> granicus.if.org Git - postgresql/commit
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)
commit5a351b66dfc457bd575568cbf55060dd38b92d68
treecb5160a17c5fe2ec7ee60474dde65a4d6eddad16
parent3c92d5fdd973ec3b386658ab1f2a72990c6cce44
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