Re: Unable to run one pl/pgSQL function :-( - Mailing list pgsql-general

From Stephan Szabo
Subject Re: Unable to run one pl/pgSQL function :-(
Date
Msg-id 20020621191753.J4586-100000@megazone23.bigpanda.com
Whole thread Raw
In response to Unable to run one pl/pgSQL function :-(  ("Bruno Baguette" <bruno.baguette@netcourrier.com>)
List pgsql-general
On Fri, 21 Jun 2002, Bruno Baguette wrote:

> Hello,
>
> I've written a little pl/pgSQL function in order to use it on a little
> postgreSQL database :
>
> CREATE function tuple_add(VARCHAR(200)) RETURNS text AS
> '
> DECLARE
> Response text;
> PeopleName ALIAS FOR $1;
> BEGIN
> INSERT INTO PEOPLES VALUES (SEQUENCE_Id.NEXTVAL(),PeopleName);

I'd suggest:
nextval(''sequence_id'') (or if SEQUENCE_Id was made with double
quotes, nextval(''"sequence_id"'') )



pgsql-general by date:

Previous
From: "Marc G. Fournier"
Date:
Subject: Re: comp.databases.postgresql.hackers
Next
From: Barry Lind
Date:
Subject: Re: timezone incompatibility