]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix circle_in to accept "(x,y),r" as it's advertised to do.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 8 Apr 2020 00:50:02 +0000 (20:50 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 8 Apr 2020 00:50:02 +0000 (20:50 -0400)
commitebd194ac58f8df3620d17bc5f1824f9833794b98
tree200505f64aef55764d875ef11db6300276cbe084
parentdbb121038c74ba4491afc5a63c48b9e780c0ae12
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