From 6024ea452342371b066c342c3dda0ef9bf2929a7 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Mon, 27 Feb 2012 16:55:46 +0000 Subject: [PATCH] Define the legacy 'within' as a proxy to ST_Within as the C entry point was dropped git-svn-id: http://svn.osgeo.org/postgis/trunk@9315 b70326c6-7e19-0410-871a-916f4a2858ee --- postgis/legacy.sql.in.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/postgis/legacy.sql.in.c b/postgis/legacy.sql.in.c index ea8207969..ba8b09c3e 100644 --- a/postgis/legacy.sql.in.c +++ b/postgis/legacy.sql.in.c @@ -1844,8 +1844,8 @@ CREATE OR REPLACE FUNCTION touches(geometry,geometry) -- Deprecation in 1.2.3 CREATE OR REPLACE FUNCTION within(geometry,geometry) RETURNS boolean - AS 'MODULE_PATHNAME' - LANGUAGE 'C' IMMUTABLE STRICT; + AS 'SELECT ST_Within($1, $2)' + LANGUAGE 'SQL' IMMUTABLE STRICT; -- Deprecation in 1.2.3 CREATE OR REPLACE FUNCTION X(geometry) -- 2.40.0