]> granicus.if.org Git - postgresql/commit
Fix planning of SubLinks to ensure that Vars generated from transformation of
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 6 Dec 2006 19:40:08 +0000 (19:40 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 6 Dec 2006 19:40:08 +0000 (19:40 +0000)
commitf07f11efde864eff63f8a4036d6286bac40611b2
treecbb3906309a28805638fc7b54736d6cf47195907
parenta7fb173fa4783e4881c893dfb8624ad5ac0ae235
Fix planning of SubLinks to ensure that Vars generated from transformation of
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.
src/backend/optimizer/plan/subselect.c