]> 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:01 +0000 (19:40 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 6 Dec 2006 19:40:01 +0000 (19:40 +0000)
commitb307d7a6c4af2de8b6b25d5614152f7cd4378f03
tree47787a6c88bcc0a376b6643a44ffa9277ca2168f
parent886a02d1cb19fe25859bd3c2d1f6a64b04cdc710
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