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

pgsql: Allow plpgsql IN parameters to be assigned to.

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Allow plpgsql IN parameters to be assigned to.
Date: 2009-09-20 01:53:32
Message-ID: 20090920015332.BE114753FB7@cvs.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
Log Message:
-----------
Allow plpgsql IN parameters to be assigned to.  Since the parameters are just
preinitialized local variables, this does not affect the function's semantics
as seen by callers; allowing assignment simply avoids the need to create more
local variables in some cases.  In any case we were being rather inconsistent
since only scalar parameters were getting marked constant.

No documentation change, since parameters were never documented as being
marked constant anyway.

Steve Prentice

Modified Files:
--------------
    pgsql/src/pl/plpgsql/src:
        pl_comp.c (r1.137 -> r1.138)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/pl/plpgsql/src/pl_comp.c?r1=1.137&r2=1.138)

pgsql-committers by date

Next:From: User CarvalhoDate: 2009-09-20 14:20:48
Subject: pllua - pllua: Minor changes to Makefile for "Lua for Windows".
Previous:From: Tom LaneDate: 2009-09-19 21:51:21
Subject: pgsql: Remove a couple hundred lines of ugly and tedious-to-maintain

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