From: Regina Obe Date: Mon, 26 Dec 2011 10:31:37 +0000 (+0000) Subject: fix typo in cast check expression. Should be checking for box3d existence not box2d X-Git-Tag: 2.0.0alpha1~297 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7971f9d7f38b2270b2bf32f5b19271eba6716019;p=postgis fix typo in cast check expression. Should be checking for box3d existence not box2d git-svn-id: http://svn.osgeo.org/postgis/trunk@8578 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/raster/rt_pg/rtpostgis_upgrade_cleanup.sql.in.c b/raster/rt_pg/rtpostgis_upgrade_cleanup.sql.in.c index abd523fb7..74c635963 100644 --- a/raster/rt_pg/rtpostgis_upgrade_cleanup.sql.in.c +++ b/raster/rt_pg/rtpostgis_upgrade_cleanup.sql.in.c @@ -78,7 +78,7 @@ BEGIN FROM pg_cast AS ca INNER JOIN pg_type AS cs ON ca.castsource = cs.oid INNER JOIN pg_type AS ct ON ca.casttarget = ct.oid - WHERE cs.typname = 'raster' AND ct.typname = 'box2d') THEN + WHERE cs.typname = 'raster' AND ct.typname = 'box3d') THEN CREATE OR REPLACE FUNCTION box3d(raster) RETURNS box3d AS 'select box3d(st_convexhull($1))'