Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search archives
  Advanced Search

plpgsql: another new reserved word



I stumbled on another gotcha in 8.3's plpgsql:

create or replace function foobar() returns text as $$
declare
    foobar  text;
begin return 'ok'; end;
$$ language plpgsql;


Results in error:

ERROR:  syntax error at or near "foobar"
LINE 3:     foobar  text;
            ^

If this is intentional, then could the error message be made better?

-- 
marko



Home | Main Index | Thread Index

Privacy Policy | About PostgreSQL
Copyright © 1996 – 2012 PostgreSQL Global Development Group