]> granicus.if.org Git - postgis/commitdiff
Update regression tests for 1-raster ST_MapAlgebraExpr due to commit r9371
authorBborie Park <bkpark at ucdavis.edu>
Thu, 1 Mar 2012 16:47:20 +0000 (16:47 +0000)
committerBborie Park <bkpark at ucdavis.edu>
Thu, 1 Mar 2012 16:47:20 +0000 (16:47 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9373 b70326c6-7e19-0410-871a-916f4a2858ee

raster/test/regress/rt_mapalgebraexpr.sql

index 350fc10f54de64bb7e3bf59cf3033cd926725ecb..4b29e0f5a7226c078a040879fdd9a7a78811561d 100644 (file)
@@ -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;