]> granicus.if.org Git - postgresql/commit
Prefer argument name over "$n" for the refname of a plpgsql argument.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 11 Sep 2017 20:24:34 +0000 (16:24 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 11 Sep 2017 20:24:43 +0000 (16:24 -0400)
commitb8060e41b5994a3cffb3ececaab10ed39b8d5dfd
treeded5584672b1560be319add3165d12df8c6ea92d
parent3612019a7925012445af29b9ea7af84bd68a5932
Prefer argument name over "$n" for the refname of a plpgsql argument.

If a function argument has a name, use that as the "refname" of the
PLpgSQL_datum representing the argument, instead of $n as before.
This allows better error messages in some cases.

Pavel Stehule, reviewed by Jeevan Chalke

Discussion: https://postgr.es/m/CAFj8pRB9GyU2U1Sb2ssgP26DZ_yq-FYDfpvUvGQ=k4R=yOPVjg@mail.gmail.com
src/pl/plpgsql/src/pl_comp.c
src/test/regress/expected/plpgsql.out
src/test/regress/sql/plpgsql.sql