• Tom Lane's avatar
    Fix planning of SubLinks to ensure that Vars generated from transformation of · b307d7a6
    Tom Lane authored
    a sublink's test expression have the correct vartypmod, rather than defaulting
    to -1.  There's at least one place where this is important because we're
    expecting these Vars to be exactly equal() to those appearing in the subplan
    itself.  This is a pretty klugy solution --- it would likely be cleaner to
    change Param nodes to include a typmod field --- but we can't do that in the
    already-released 8.2 branch.
    Per bug report from Hubert Fongarnand.
    b307d7a6
subselect.c 39.4 KB