From 2afa90ab68641696c5af835e94bfd503c4ffb1fd Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Mon, 27 Feb 2012 15:02:58 +0000 Subject: [PATCH] Add postgis_topology_scripts_installed() function (#1608) git-svn-id: http://svn.osgeo.org/postgis/trunk@9306 b70326c6-7e19-0410-871a-916f4a2858ee --- topology/topology.sql.in.c | 6 ++++++ 1 file changed, 6 insertions(+) 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'); -- 2.40.0