From: Sandro Santilli Date: Sat, 24 Dec 2011 09:57:57 +0000 (+0000) Subject: Avoid function calls in DEFAULT specifications for unknown SRID X-Git-Tag: 2.0.0alpha1~333 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=13a055fb92ee26b54410a1251391e7938aed036a;p=postgis Avoid function calls in DEFAULT specifications for unknown SRID Matches what postgis.sql does as well. Fixes generation of uninstall script for raster (#301) git-svn-id: http://svn.osgeo.org/postgis/trunk@8542 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/raster/rt_pg/rtpostgis.sql.in.c b/raster/rt_pg/rtpostgis.sql.in.c index 910c7f181..19e6aa4c6 100644 --- a/raster/rt_pg/rtpostgis.sql.in.c +++ b/raster/rt_pg/rtpostgis.sql.in.c @@ -174,7 +174,7 @@ CREATE OR REPLACE FUNCTION st_metadata( ----------------------------------------------------------------------- -- Constructors ST_MakeEmptyRaster and ST_AddBand ----------------------------------------------------------------------- -CREATE OR REPLACE FUNCTION st_makeemptyraster(width int, height int, upperleftx float8, upperlefty float8, scalex float8, scaley float8, skewx float8, skewy float8, srid int4 DEFAULT ST_SRID('POINT(0 0)'::geometry)) +CREATE OR REPLACE FUNCTION st_makeemptyraster(width int, height int, upperleftx float8, upperlefty float8, scalex float8, scaley float8, skewx float8, skewy float8, srid int4 DEFAULT 0) RETURNS RASTER AS 'MODULE_PATHNAME', 'RASTER_makeEmpty' LANGUAGE 'C' IMMUTABLE STRICT;