> > CREATE FUNCTION next_target ( )
> > RETURNS int4 AS
> > 'update global set next_target=next_target+1;select
> > next_target from global'
> ^
> Do you need another ';' here?
>
> > LANGUAGE 'SQL';
Thanks Brett, you are correct.
It seems that prior to 6.5, this wasn't necessary but now is.
Glen.