]> granicus.if.org Git - postgis/commitdiff
Put postgis_topology_scripts_installed() in topology schema (#2502)
authorSandro Santilli <strk@keybit.net>
Wed, 9 Oct 2013 06:36:48 +0000 (06:36 +0000)
committerSandro Santilli <strk@keybit.net>
Wed, 9 Oct 2013 06:36:48 +0000 (06:36 +0000)
This was the only topology signature installed in the default schema.
The postgis_full_version() function is updated to find it there.

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

postgis/postgis.sql.in
topology/topology.sql.in
topology/topology_drop_before.sql.in

index e2f304ac4f29a9404b0b863166ec85ebf49f9788..6caa6c19afbb79f8b78c61e6de9459ac94feffff 100644 (file)
@@ -2590,9 +2590,9 @@ BEGIN
        SELECT postgis_scripts_released() INTO relproc;
        select postgis_svn_version() INTO svnver;
        BEGIN
-               SELECT postgis_topology_scripts_installed() INTO topo_scr_ver;
+               SELECT topology.postgis_topology_scripts_installed() INTO topo_scr_ver;
        EXCEPTION
-               WHEN undefined_function THEN
+               WHEN undefined_function OR invalid_schema_name THEN
                        topo_scr_ver := NULL;
                        RAISE NOTICE 'Function postgis_topology_scripts_installed() not found. Is topology support enabled and topology.sql installed?';
        END;
index ca351a7437224fe85509d3a1df16cd9139c399bf..9deadf223ec7107b676740bc891d859273b27b9c 100644 (file)
@@ -2003,7 +2003,7 @@ LANGUAGE 'plpgsql' VOLATILE STRICT;
 --general management --
 #include "sql/manage/ManageHelper.sql.in"
 
-CREATE OR REPLACE FUNCTION postgis_topology_scripts_installed() RETURNS text
+CREATE OR REPLACE FUNCTION topology.postgis_topology_scripts_installed() RETURNS text
        AS _POSTGIS_SQL_SELECT_POSTGIS_SCRIPTS_VERSION
        LANGUAGE 'sql' IMMUTABLE;
 
index 2a4d24ff9bac0684ff3debcadb1bcdefb56f4376..f1e79313fc884f3fc1b5f2e80e44deb95ee29998 100644 (file)
@@ -15,3 +15,6 @@
 -- I don't think too many people installed the bad name
 DROP FUNCTION IF EXISTS topology.toTopoGeom(Geometry, varchar, int, float8);
 
+-- used to be in public, will now be moved to topology
+DROP FUNCTION IF EXISTS postgis_topology_scripts_installed();
+