• Tom Lane's avatar
    Fix plpgsql to pass only one copy of any given plpgsql variable into a SQL · 4fb92718
    Tom Lane authored
    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.
    4fb92718
gram.y 54.5 KB