Ticket #1869 (closed defect: fixed)
ST_AsBinary is not unique (again)
| Reported by: | nidi | Owned by: | robe |
|---|---|---|---|
| Priority: | medium | Milestone: | PostGIS 2.0.2 |
| Component: | postgis | Version: | 2.0.x |
| Keywords: | history | Cc: | erilem |
Description
PostGIS 2 introduced the following behavior again, which has already been resolved in PostGIS 1.5 (see #252):
SELECT ST_AsBinary('POINT(1 2)');
yields
ERROR: function st_asbinary(unknown) is not unique
LINE 1: SELECT ST_AsBinary('POINT(1 2)');
^
HINT: Could not choose a best candidate function. You might need to add explicit type casts.
Explicit type casts do work:
SELECT ST_AsBinary('POINT(1 2)'::geometry);
st_asbinary
----------------------------------------------
\x0101000000000000000000f03f0000000000000040
(1 row)
Is the need of explicitely defining the result intended or a regression? If this behavior is intended, libraries such as geoalchemy would need to change query construction.
Change History
Note: See
TracTickets for help on using
tickets.
