pgsql: Make plpgsql complain about conflicting IN and OUT parameter nam - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Make plpgsql complain about conflicting IN and OUT parameter nam
Date
Msg-id E1QObqe-0005cV-Ct@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Make plpgsql complain about conflicting IN and OUT parameter names.

The core CREATE FUNCTION code only enforces that IN parameter names are
non-duplicate, and that OUT parameter names are separately non-duplicate.
This is because some function languages might not have any confusion
between the two.  But in plpgsql, such names are all in the same namespace,
so we'd better disallow it.

Per a recent complaint from Dan S.  Not back-patching since this is a small
issue and the change could cause unexpected failures if we started to
enforce it in a minor release.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/59a4a571d396ec00a7e363dca8b2f5eb2d8307ad

Modified Files
--------------
src/pl/plpgsql/src/pl_comp.c |   30 ++++++++++++++++++++++++++++--
1 files changed, 28 insertions(+), 2 deletions(-)


pgsql-committers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: pgsql: Fix integer overflow in text_format function, reported by Dean R
Next
From: Hitoshi Harada
Date:
Subject: Re: pgsql: Support RIGHT and FULL OUTER JOIN in hash joins.