]> granicus.if.org Git - postgis/commitdiff
fix typo in cast check expression. Should be checking for box3d existence not box2d
authorRegina Obe <lr@pcorp.us>
Mon, 26 Dec 2011 10:31:37 +0000 (10:31 +0000)
committerRegina Obe <lr@pcorp.us>
Mon, 26 Dec 2011 10:31:37 +0000 (10:31 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8578 b70326c6-7e19-0410-871a-916f4a2858ee

raster/rt_pg/rtpostgis_upgrade_cleanup.sql.in.c

index abd523fb7183eed9645d8074d342bddcbf5c796a..74c63596341bc6d5076ced1764c1aea4cb10f747 100644 (file)
@@ -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))'