Fix circle_in to accept "(x,y),r" as it's advertised to do.
authorTom Lane <[email protected]>
Wed, 8 Apr 2020 00:50:02 +0000 (20:50 -0400)
committerTom Lane <[email protected]>
Wed, 8 Apr 2020 00:50:28 +0000 (20:50 -0400)
commit41a194f49177daf9348bfde2c42e85b806dcee31
tree6d2508ab57f329e847cde5f7f7d787463ffcd743
parent75848bc74411130ede23995d0ab1aefb12c4c4b0
Fix circle_in to accept "(x,y),r" as it's advertised to do.

Our documentation describes four allowed input syntaxes for circles,
but the regression tests tried only three ... with predictable
consequences.  Remarkably, this has been wrong since the circle
datatype was added in 1997, but nobody noticed till now.

David Zhang, with some help from me

Discussion: https://postgr.es/m/332c47fa-d951-7574-b5cc-a8f7f7201202@highgo.ca
src/backend/utils/adt/geo_ops.c
src/test/regress/expected/circle.out
src/test/regress/sql/circle.sql