In current cvs I get
dennis=# CREATE FUNCTION foo () returns int AS 'select a;' language 'sql';ERROR: column "a" does not existERROR: column "a" does not exist
It should only be one error.
-- /Dennis