[postgis-devel] [PostGIS] #924: GEOMETRYCOLLECTION(EMPTY) breaking change
PostGIS
trac at osgeo.org
Mon Apr 25 14:29:57 PDT 2011
#924: GEOMETRYCOLLECTION(EMPTY) breaking change
---------------------+------------------------------------------------------
Reporter: robe | Owner: pramsey
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 2.0.0
Component: postgis | Version: trunk
Keywords: |
---------------------+------------------------------------------------------
This is a related ticket to #923.
As Mike noted, we broke backwards compatibility with
GEOMETRYCOLLECTION(EMPTY).
-- this used to be legal in PostGIS 1.5 and below but in 2.0 now throws
and error
SELECt ST_IsEmpty('GEOMETRYCOLLECTION(EMPTY)'::geometry);
-- FWIW GEOMETRYCOLLECTION(EMPTY) is illegal in SQL Server as well and
GEOMETRYCOLLECTION EMPTY works fine.
Is this an intentional break or an accidental one? If so as Mike states
we should document that as a break. Not sure if it really affects anybody
though.
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/924>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
More information about the postgis-devel
mailing list