From: Zolof <zolof@club-internet.fr>
To: pgsql-docs@postgresql.org.pgsql-general
Subject: pl/pgSQL & transaction
Date: Thu, 18 Jan 2001 18:17:27 +0100
Message-ID: <9478lh$1m2r$2@news.tht.net> (raw)
This code doesn't work. I use Begin Work to start a transaction but BEGIN is
a PL/pgSQL command so I have a parse error when executing it.
CREATE FUNCTION a () RETURNS int4 AS '
BEGIN
BEGIN WORK;
COMMIT WORK;
return 1;
END;
' LANGUAGE 'plpgsql';
What's wrong ????
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: zolof@club-internet.fr, pgsql-docs@postgresql.org.pgsql-general
Subject: Re: pl/pgSQL & transaction
In-Reply-To: <9478lh$1m2r$2@news.tht.net>
* 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