]> granicus.if.org Git - postgis/commitdiff
Add postgis_topology_scripts_installed() function (#1608)
authorSandro Santilli <strk@keybit.net>
Mon, 27 Feb 2012 15:02:58 +0000 (15:02 +0000)
committerSandro Santilli <strk@keybit.net>
Mon, 27 Feb 2012 15:02:58 +0000 (15:02 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9306 b70326c6-7e19-0410-871a-916f4a2858ee

topology/topology.sql.in.c

index 1c6edf4c0c1759b9a2d5d29a8dda4992b883d891..0e0d5a2d1b482128140b34693084578c320dddb9 100644 (file)
@@ -1961,6 +1961,12 @@ LANGUAGE 'plpgsql' VOLATILE STRICT;
 --general management --
 #include "sql/manage/ManageHelper.sql.in.c"
 
+#include "../postgis/sqldefines.h"
+
+CREATE OR REPLACE FUNCTION postgis_topology_scripts_installed() RETURNS text
+       AS _POSTGIS_SQL_SELECT_POSTGIS_SCRIPTS_VERSION
+       LANGUAGE 'sql' IMMUTABLE;
+
 --COMMIT;
 -- Make sure topology is in database search path --
 SELECT topology.AddToSearchPath('topology');