Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4293adc

Browse files
author
Thomas G. Lockhart
committed
Disable checking for zero or one points with deeper parens on input.
Polygon input would not accept single-point polygon output and dump.
1 parent 6be30fb commit 4293adc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/backend/utils/adt/geo_ops.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/utils/adt/geo_ops.c,v 1.25 1997/09/20 16:22:31 thomas Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/adt/geo_ops.c,v 1.26 1997/09/25 14:09:04 thomas Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -224,9 +224,11 @@ path_decode(int opentype, int npts, char *str, int *isopen, char **ss, Point *p)
224224
cp++;
225225
if (*cp == LDELIM)
226226
{
227+
#if FALSE
227228
/* nested delimiters with only one point? */
228229
if (npts <= 1)
229230
return (FALSE);
231+
#endif
230232
depth++;
231233
s = cp;
232234
}

0 commit comments

Comments
 (0)