Hi,
I am trying to use the CREATE FUNCTION in order to process multiple
calculation, and forward at the end multiple instances.
This is the SQL statement I am using:
CREATE FUNCTION foo(varchar) RETURNS setof myTable
AS 'UPDATE .......;
INSERT.......;
SELECT myTable.field2 from myTable'
LANGUAGE 'sql';
I always get an error saying that there is a type mismatch between what is
behing the "setof" and what is return by this function (myTable.field2)
Any idea?
(Note: I am using postgresql 7.02)
Fabien