From 13a055fb92ee26b54410a1251391e7938aed036a Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Sat, 24 Dec 2011 09:57:57 +0000 Subject: [PATCH] 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 --- raster/rt_pg/rtpostgis.sql.in.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.50.1