OSDN Git Service

Make heap_update() set newtup->t_tableOid correctly, for consistency with
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 16 Dec 2008 16:26:08 +0000 (16:26 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 16 Dec 2008 16:26:08 +0000 (16:26 +0000)
commitfc3297d828645bcf6447b8cdb2d5b99cff19be9e
treeeeb78cbd25f06abc52a2e4aa4e7f72c0ffe43535
parent04ecc64310477f57c144e45e44b8ff667783799c
Make heap_update() set newtup->t_tableOid correctly, for consistency with
the other major heapam.c functions.  The only known consequence of this
omission is that UPDATE RETURNING failed to return the correct value for
"tableoid", as per report from KaiGai Kohei.

Back-patch to 8.2.  Arguably it's wrong all the way back; but without
evidence of visible breakage before RETURNING was added, I'll desist from
patching the older branches.
src/backend/access/heap/heapam.c