mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Disable checking for zero or one points with deeper parens on input.
Polygon input would not accept single-point polygon output and dump.
This commit is contained in:
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/utils/adt/geo_ops.c,v 1.25 1997/09/20 16:22:31 thomas Exp $
|
* $Header: /cvsroot/pgsql/src/backend/utils/adt/geo_ops.c,v 1.26 1997/09/25 14:09:04 thomas Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -224,9 +224,11 @@ path_decode(int opentype, int npts, char *str, int *isopen, char **ss, Point *p)
|
|||||||
cp++;
|
cp++;
|
||||||
if (*cp == LDELIM)
|
if (*cp == LDELIM)
|
||||||
{
|
{
|
||||||
|
#if FALSE
|
||||||
/* nested delimiters with only one point? */
|
/* nested delimiters with only one point? */
|
||||||
if (npts <= 1)
|
if (npts <= 1)
|
||||||
return (FALSE);
|
return (FALSE);
|
||||||
|
#endif
|
||||||
depth++;
|
depth++;
|
||||||
s = cp;
|
s = cp;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user