[postgis-tickets] [PostGIS] #2956: ST_AsTWKB(NULL) crashes the backend
PostGIS
trac at osgeo.org
Mon Oct 6 09:52:09 PDT 2014
#2956: ST_AsTWKB(NULL) crashes the backend
---------------------+------------------------------------------------------
Reporter: strk | Owner: nicklas
Type: defect | Status: new
Priority: blocker | Milestone: PostGIS 2.2.0
Component: postgis | Version: trunk
Keywords: |
---------------------+------------------------------------------------------
Comment(by nicklas):
Actually I just removed strict a few days ago because I used null as
default value for id:
{{{
CREATE OR REPLACE FUNCTION ST_AsTWKB(geometry,int4,int8 default
null,boolean default false, boolean default false)
}}}
Maybe that is a bad solution. The reason is that it is not supposed to be
any default value. If id is not declared the twkb-geometry is created
without any space for id. Since id can be 0 that is not possible to use as
default. Any other ideas to do it the cleanest way?
Or is it the best way to go to catch the null value in the C-function like
in strks patch?
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2956#comment:5>
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-tickets
mailing list