From: Bborie Park Date: Thu, 1 Mar 2012 16:47:20 +0000 (+0000) Subject: Update regression tests for 1-raster ST_MapAlgebraExpr due to commit r9371 X-Git-Tag: 2.0.0beta2~54 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4e0e8a594850150cc416ac272ce7431213f04996;p=postgis Update regression tests for 1-raster ST_MapAlgebraExpr due to commit r9371 git-svn-id: http://svn.osgeo.org/postgis/trunk@9373 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/raster/test/regress/rt_mapalgebraexpr.sql b/raster/test/regress/rt_mapalgebraexpr.sql index 350fc10f5..4b29e0f5a 100644 --- a/raster/test/regress/rt_mapalgebraexpr.sql +++ b/raster/test/regress/rt_mapalgebraexpr.sql @@ -37,10 +37,10 @@ FROM ST_TestRaster(0, 0, 10) rast; -- Test evaluations to null (see #1523) WITH op AS ( select rast AS rin, - ST_MapAlgebraExpr(rast, 1, NULL, 'g from (select NULL as g) as foo', 2) + ST_MapAlgebraExpr(rast, 1, NULL, 'SELECT g from (select NULL::double precision as g) as foo', 2) AS rout FROM ST_TestRaster(0, 0, 10) rast ) SELECT 'T11.1', ST_Value(rin, 1, 1), ST_Value(rout, 1, 1) FROM op; WITH op AS ( select rast AS rin, - ST_MapAlgebraExpr(rast, 1, NULL, 'g from (select [rast],NULL as g) as foo', 2) + ST_MapAlgebraExpr(rast, 1, NULL, 'SELECT g from (select [rast],NULL::double precision as g) as foo', 2) AS rout FROM ST_TestRaster(0, 0, 10) rast ) SELECT 'T11.2', ST_Value(rin, 1, 1), ST_Value(rout, 1, 1) FROM op;