Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4293adc

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 parent6be30fb commit4293adc

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+
#ifFALSE
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)

[8]ページ先頭

©2009-2025 Movatter.jp