From: Tom Lane <tgl@sss.pgh.pa.us>
To: Yaroslav Ulyanov <yulyanov@mera.ru>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: Create function problem
Date: Thu, 04 Sep 2003 09:55:54 -0400
Message-ID: <21879.1062683754@sss.pgh.pa.us> (raw)
In-Reply-To: <013a01c372bd$5fee1610$800ca8c0@meraqms.ru>
References: <013a01c372bd$5fee1610$800ca8c0@meraqms.ru>
"Yaroslav Ulyanov" <yulyanov@mera.ru> writes:
> CREATE FUNCTION "get_new_id1" () RETURNS bigint AS'
> declare
> id bigint;
> begin
> id:=3Dnextval(\'id_sequence\'::text);
> return id;
> end;
> 'LANGUAGE 'sql' VOLATILE ;
That's plpgsql code, but you've declared the function as language 'sql'.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: tgl@sss.pgh.pa.us, yulyanov@mera.ru
Subject: Re: Create function problem
In-Reply-To: <21879.1062683754@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox