]> granicus.if.org Git - postgresql/commit
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:45 +0000 (04:22 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 23 Mar 2006 04:22:45 +0000 (04:22 +0000)
commitdb61437b274a5d9134467346bf7bf996877cc5f6
treeef004283301b1cfaeecb1fb90cc080dc85409fe9
parenta155814e373fde80e7fae7d240bd100370c3b2b3
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