workaround a bug of pgsql8.0.{1,2}
git-svn-id: http://svn.osgeo.org/postgis/trunk@1539
b70326c6-7e19-0410-871a-
916f4a2858ee
- subselects support in selectivity estimator
- bug fixes for 64bit architectures
- bugfix in loaded, skipping all but first hole of polygons.
+ - changed get_proj4_from_srid implementation to use plpgsql
+ instead of sql to workaround a pgsql80x bug.
PostGIS 1.0.0RC3
2005/02/24
---------------------------------------------------------------
CREATEFUNCTION get_proj4_from_srid(integer) RETURNS text AS
-'SELECT proj4text::text FROM spatial_ref_sys WHERE srid= $1'
-LANGUAGE 'sql' _IMMUTABLE_STRICT; -- WITH (iscachable,isstrict);
+'
+BEGIN
+ RETURN proj4text::text FROM spatial_ref_sys WHERE srid= $1;
+END;
+'
+LANGUAGE 'plpgsql' IMMUTABLE STRICT; -- WITH (iscachable,isstrict);
+
+
CREATEFUNCTION transform_geometry(geometry,text,text,int)
RETURNS geometry