AS 'MODULE_PATHNAME','LWGEOM_get_srid'
LANGUAGE 'c' IMMUTABLE STRICT;
+-- Deprecation in 1.5.0
+-- hack to allow unknown to cast to geometry
+-- so does not yield function is not unique
+CREATE OR REPLACE FUNCTION ST_AsBinary(text)
+ RETURNS bytea
+ AS
+ $$ SELECT ST_AsBinary($1::geometry);$$
+ LANGUAGE 'sql' IMMUTABLE STRICT;
+
+-- Deprecation in 1.5.0
+-- hack to allow unknown to cast to geometry
+-- so does not yield function is not unique
+CREATE OR REPLACE FUNCTION ST_AsText(bytea)
+ RETURNS text
+ AS
+ $$ SELECT ST_AsText($1::geometry);$$
+ LANGUAGE 'sql' IMMUTABLE STRICT;
DELETE FROM geometry_columns WHERE f_table_name = 'wmstest' AND f_table_schema = 'public';
SELECT 'Done.';
+-- test #1869 ST_AsBinary is not unique --
+SELECT 1869 As ticket_id, ST_AsText(ST_AsBinary('POINT(1 2)'));
+
DELETE FROM spatial_ref_sys WHERE SRID = '4326';
\i 00-regress-install/share/contrib/postgis/uninstall_legacy.sql