]> granicus.if.org Git - postgis/commitdiff
#2027: Add unionarg
authorRegina Obe <lr@pcorp.us>
Wed, 3 Oct 2012 14:33:33 +0000 (14:33 +0000)
committerRegina Obe <lr@pcorp.us>
Wed, 3 Oct 2012 14:33:33 +0000 (14:33 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@10366 b70326c6-7e19-0410-871a-916f4a2858ee

raster/rt_pg/rtpostgis_upgrade_cleanup.sql.in.c

index a358ebea044b6dd82a8b59b6162995db077a034b..9c006615a933f7cd43f4474b0f96808e8cf37af0 100644 (file)
@@ -107,6 +107,15 @@ BEGIN
                                aligned boolean
                        );
     END IF;
+    
+    -- create unionarg type if it does not exist
+       IF NOT EXISTS(SELECT typname
+               FROM pg_type 
+               WHERE typname = 'unionarg') THEN
+                       CREATE TYPE unionarg AS
+                          (nband integer,
+                               uniontype text);
+    END IF;
 END$$; 
 
 -- make geometry cast ASSIGNMENT