OSDN Git Service

Make plpgsql complain about conflicting IN and OUT parameter names.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 23 May 2011 20:34:27 +0000 (16:34 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 23 May 2011 20:35:22 +0000 (16:35 -0400)
commit59a4a571d396ec00a7e363dca8b2f5eb2d8307ad
treedf1b9e1630fe52c3ad397bd1b4696303fc7d1d7b
parent34be83b7e142a718c7a831c9df9763aa83fe4cd5
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.
src/pl/plpgsql/src/pl_comp.c