Skip site navigation (1) Skip section navigation (2)

pgsql: Fix plpgsql's EXIT so that an EXIT without a label only matches a

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix plpgsql's EXIT so that an EXIT without a label only matches a
Date: 2009-05-02 17:27:57
Message-ID: 20090502172757.C49E075407B@cvs.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
Log Message:
-----------
Fix plpgsql's EXIT so that an EXIT without a label only matches a loop,
never a BEGIN block.  This is required for Oracle compatibility and is
also plainly stated to be the behavior by our original documentation
(up until 8.1, in which the docs were adjusted to match the code's behavior;
but actually the old docs said the correct thing and the code was wrong).

Not back-patched because this introduces an incompatibility that could
break working applications.  Requires release note.

Modified Files:
--------------
    pgsql/doc/src/sgml:
        plpgsql.sgml (r1.140 -> r1.141)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/doc/src/sgml/plpgsql.sgml?r1=1.140&r2=1.141)
    pgsql/src/pl/plpgsql/src:
        pl_exec.c (r1.240 -> r1.241)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/pl/plpgsql/src/pl_exec.c?r1=1.240&r2=1.241)

pgsql-committers by date

Next:From: User BmomjianDate: 2009-05-02 19:32:52
Subject: pg-migrator - src: Properly set frozen xids in pg_database and pg_class.
Previous:From: User EggyknapDate: 2009-05-02 14:09:43
Subject: pllolcode - pllolcode: Achieved a warning-free build

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group