]> 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:37 +0000 (00:04 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 18 Dec 2007 00:04:37 +0000 (00:04 +0000)
commit11b709714cd85adbea4000c0819d0fc7a726a0bb
tree7779469c34d0f29877189c6996394bcc360d550d
parent86f6837ac3be9db0992dba53ad0af4b66ef21bef
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