]> granicus.if.org Git - postgis/commitdiff
Add a TOPOLOGY and a RASTER label in postgis_full_version() output
authorSandro Santilli <strk@keybit.net>
Wed, 14 Mar 2012 15:32:33 +0000 (15:32 +0000)
committerSandro Santilli <strk@keybit.net>
Wed, 14 Mar 2012 15:32:33 +0000 (15:32 +0000)
This is to know if they are available

git-svn-id: http://svn.osgeo.org/postgis/trunk@9491 b70326c6-7e19-0410-871a-916f4a2858ee

postgis/postgis.sql.in.c

index abd84361da04b7aaf073eeaead0484a5f6015156..8995375ac2bb46f4383da60c1d4fe23c1641e815 100644 (file)
@@ -2435,12 +2435,18 @@ BEGIN
                fullver = fullver || ' (core procs from "' || dbproc || '" need upgrade)';
        END IF;
 
-       IF topo_scr_ver IS NOT NULL AND topo_scr_ver != relproc THEN
-               fullver = fullver || ' (topology procs from "' || topo_scr_ver || '" need upgrade)';
+       IF topo_scr_ver IS NOT NULL THEN
+               fullver = fullver || ' TOPOLOGY';
+               IF topo_scr_ver != relproc THEN
+                       fullver = fullver || ' (topology procs from "' || topo_scr_ver || '" need upgrade)';
+               END IF;
        END IF;
 
-       IF rast_lib_ver IS NOT NULL AND rast_lib_ver != relproc THEN
-               fullver = fullver || ' (raster lib from "' || rast_lib_ver || '" need upgrade)';
+       IF rast_lib_ver IS NOT NULL THEN
+               fullver = fullver || ' RASTER';
+               IF rast_lib_ver != relproc THEN
+                       fullver = fullver || ' (raster lib from "' || rast_lib_ver || '" need upgrade)';
+               END IF;
        END IF;
 
        IF rast_scr_ver IS NOT NULL AND rast_scr_ver != relproc THEN