Content-Length: 257143 | pFad | http://github.com/postgrespro/postgres/commit/0a2f894c3c88e4693d7cd36cba1b136474c7ff89

FF Fix typo in tts_virtual_copyslot. · postgrespro/postgres@0a2f894 · GitHub
Skip to content

Commit 0a2f894

Browse files
committed
Fix typo in tts_virtual_copyslot.
The code used the destination slot's natts where it intended to use the source slot's natts. Adding an Assert shows that there is no case in "make check-world" where these counts are different, so maybe this is a harmless bug, but it's still a bug. Takayuki Tsunakawa Discussion: https://postgr.es/m/0A3221C70F24FB45833433255569204D1FD34C0E@G01JPEXMBYT05
1 parent 51004c7 commit 0a2f894

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/executor/execTuples.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ tts_virtual_materialize(TupleTableSlot *slot)
244244
static void
245245
tts_virtual_copyslot(TupleTableSlot *dstslot, TupleTableSlot *srcslot)
246246
{
247-
TupleDesc srcdesc = dstslot->tts_tupleDescriptor;
247+
TupleDesc srcdesc = srcslot->tts_tupleDescriptor;
248248

249249
Assert(srcdesc->natts <= dstslot->tts_tupleDescriptor->natts);
250250

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/0a2f894c3c88e4693d7cd36cba1b136474c7ff89

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy