fix circle type bug

This commit is contained in:
sqyyeah
2021-02-25 17:18:16 +08:00
parent 7094374fd0
commit 63121c848a

View File

@ -4092,15 +4092,19 @@ Datum circle_in(PG_FUNCTION_ARGS)
while (isspace((unsigned char)*s)) {
s++;
}
if ((*s == LDELIM_C) || (*s == LDELIM)) {
if (*s == LDELIM_C) {
depth++;
s++;
} else if (*s == LDELIM) {
cp = (s + 1);
while (isspace((unsigned char)*cp)) {
cp++;
}
if (*cp == LDELIM)
if (*cp == LDELIM) {
depth++;
s = cp;
}
}
if (!pair_decode(s, &circle->center.x, &circle->center.y, &s))
ereport(ERROR,