From: Sandro Santilli Date: Mon, 27 Feb 2012 16:55:46 +0000 (+0000) Subject: Define the legacy 'within' as a proxy to ST_Within as the C entry point was dropped X-Git-Tag: 2.0.0beta1~41 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6024ea452342371b066c342c3dda0ef9bf2929a7;p=postgis 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 --- 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)