]> granicus.if.org Git - postgis/commitdiff
Define the legacy 'within' as a proxy to ST_Within as the C entry point was dropped
authorSandro Santilli <strk@keybit.net>
Mon, 27 Feb 2012 16:55:46 +0000 (16:55 +0000)
committerSandro Santilli <strk@keybit.net>
Mon, 27 Feb 2012 16:55:46 +0000 (16:55 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9315 b70326c6-7e19-0410-871a-916f4a2858ee

postgis/legacy.sql.in.c

index ea82079698e934e186217f32c5217730a03e6312..ba8b09c3e7e64dac78477113836708a7d063b7d4 100644 (file)
@@ -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)