OSDN Git Service

Fix plpgsql to pass only one copy of any given plpgsql variable into a SQL
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 23 Mar 2006 04:22:37 +0000 (04:22 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 23 Mar 2006 04:22:37 +0000 (04:22 +0000)
commit4fb92718be654b38652dfe893d075f3862e84eae
tree5257cc914a9c9ea581b3854d40b2815692113176
parent19956e0d5388b11a1cc3eaf2dbf628aa531ce331
Fix plpgsql to pass only one copy of any given plpgsql variable into a SQL
command or expression, rather than one copy for each textual occurrence as
it did before.  This might result in some small performance improvement,
but the compelling reason to do it is that not doing so can result in
unexpected grouping failures because the main SQL parser won't see different
parameter numbers as equivalent.  Add a regression test for the failure case.
Per report from Robert Davidson.
src/pl/plpgsql/src/gram.y
src/test/regress/expected/plpgsql.out
src/test/regress/sql/plpgsql.sql