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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@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>
References: <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