CREATE OR REPLACE FUNCTION

From: Mariela Martinez <mmartinez(at)movilmaster(dot)cl>
To: pgsql-es-ayuda(at)postgresql(dot)org
Subject: CREATE OR REPLACE FUNCTION
Date: 2004-10-13 14:45:19
Message-ID: MIEBIKDDFCOKJAEGEPGIAEDFCBAA.mmartinez@movilmaster.cl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda


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

Responses

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Mariela Martinez 2004-10-13 16:21:27 RE: CREATE OR REPLACE FUNCTION
Previous Message Fernando Papa 2004-10-13 14:13:07 RE: Cambio de usuario