Fix typo in tts_virtual_copyslot.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 308813846e737f7d92ffb4e033d65e3df6cbddba
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2019-09-22T18:21:07Z
Releases: 12.0
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

Files

PathChange+/−
src/backend/executor/execTuples.c modified +1 −1

Discussion