From: Thomas G. Lockhart Date: Thu, 25 Sep 1997 14:09:04 +0000 (+0000) Subject: Disable checking for zero or one points with deeper parens on input. X-Git-Tag: REL6_2~79 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4293adc117e2167fe4b3c18d6d9ef37ec502caa5;p=postgresql Disable checking for zero or one points with deeper parens on input. Polygon input would not accept single-point polygon output and dump. --- diff --git a/src/backend/utils/adt/geo_ops.c b/src/backend/utils/adt/geo_ops.c index 59715ee676..acbbec30ac 100644 --- a/src/backend/utils/adt/geo_ops.c +++ b/src/backend/utils/adt/geo_ops.c @@ -7,7 +7,7 @@ * * * 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++; if (*cp == LDELIM) { +#if FALSE /* nested delimiters with only one point? */ if (npts <= 1) return (FALSE); +#endif depth++; s = cp; }