From: Sandro Santilli Date: Mon, 27 Feb 2012 15:02:58 +0000 (+0000) Subject: Add postgis_topology_scripts_installed() function (#1608) X-Git-Tag: 2.0.0beta1~50 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2afa90ab68641696c5af835e94bfd503c4ffb1fd;p=postgis Add postgis_topology_scripts_installed() function (#1608) git-svn-id: http://svn.osgeo.org/postgis/trunk@9306 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/topology/topology.sql.in.c b/topology/topology.sql.in.c index 1c6edf4c0..0e0d5a2d1 100644 --- a/topology/topology.sql.in.c +++ b/topology/topology.sql.in.c @@ -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');