Documentation vs. allowed circle input formats
Started by James Robinsonalmost 7 years ago1 messagesbugs
PG 11.3 docs <https://www.postgresql.org/docs/current/datatype-geometric.html#DATATYPE-CIRCLE> state that
'(x, y), r'
is a supported circle input format, but is not in reality:
# select '<(15, 15), 5>'::circle;
circle
-------------
<(15,15),5>
(1 row)
# select '((15, 15), 5)'::circle;
circle
-------------
<(15,15),5>
(1 row)
# select '15, 15, 5'::circle;
circle
-------------
<(15,15),5>
(1 row)
# select '(15, 15), 5'::circle;
ERROR: invalid input syntax for type circle: "(15, 15), 5"
LINE 1: select '(15, 15), 5'::circle;
I could produce a patch for either the documentation or the input function at the pleasure of a committer.
-----
James Robinson
james@jlr-photo.com
http://jlr-photo.com/