Обсуждение: pgsql: Fix circle_in to accept "(x,y),r" as it's advertised to do.

Поиск
Список
Период
Сортировка

pgsql: Fix circle_in to accept "(x,y),r" as it's advertised to do.

От
Tom Lane
Дата:
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

Branch
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/049e9f48e967767ace15e4f4c36e9acdaa60465f

Modified Files
--------------
src/backend/utils/adt/geo_ops.c      | 13 ++++++++-----
src/test/regress/expected/circle.out | 10 +++++-----
src/test/regress/sql/circle.sql      | 10 +++++-----
3 files changed, 18 insertions(+), 15 deletions(-)