I've just looked at the new online 7.2 documentation and found that all functions must end in some kind of select. How about this then?
CREATE FUNCTION foo(varchar) RETURN unknown AS ' INSERT INTO footable VALUES ($1); SELECT null; ' LANGUAGE 'sql'; "Edward Grabczewski" <[EMAIL PROTECTED]> wrote in message 9s0n0p$1saj$[EMAIL PROTECTED]">news:9s0n0p$1saj$[EMAIL PROTECTED]... > What value should I RETURN for a SQL FUNCTION that contains an INSERT > statement? > > -- > Eddy Grabczewski > [EMAIL PROTECTED] > > > ---------------------------(end of broadcast)--------------------------- TIP 6: Have you searched our list archives? http://archives.postgresql.org