Ron St-Pierre wrote:
> Here are my record type and function:
Note -- you could make it easier for people to help, and hence increase
your chances of getting help, if your sample code is complete. I.e.
provide the needed table definition(s) and even some sample data (INSERT
statements) so we don't have to reverse engineer those things.
> END LOOP;
> RETURN 1;
> END;
> ' LANGUAGE 'plpgsql';
The line "RETURN 1;" ought to be just "RETURN;"
HTH,
Joe