]> granicus.if.org Git - postgis/commitdiff
Avoid function calls in DEFAULT specifications for unknown SRID
authorSandro Santilli <strk@keybit.net>
Sat, 24 Dec 2011 09:57:57 +0000 (09:57 +0000)
committerSandro Santilli <strk@keybit.net>
Sat, 24 Dec 2011 09:57:57 +0000 (09:57 +0000)
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

raster/rt_pg/rtpostgis.sql.in.c

index 910c7f181af29ad55ebcad4305d6aaff92224b73..19e6aa4c6847fec6e44f82e68c5a24db9348ace1 100644 (file)
@@ -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;