Por favor, necesito ayuda con esta función:
CREATE OR REPLACE FUNCTION selectcalles(text, text)
RETURNS callesstgo AS
'DECLARE
res text;
BEGIN
select * from callesstgo where distance(GeometryFromText(''POINT('' ||
$1
|| '' '' || $2 || '') '',-1),the_geom) < 25;
END;'
LANGUAGE 'plpgsql' VOLATILE;
Necesito traer un conjunto de registros, pero cuando la ejecuto me trae el
siguiente error:
ERROR: SELECT query has no destination for result data.
If you want to discard the results, use PERFORM instead.
Estoy trabajando con PostGreSQL 7.3