Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3088138

Browse files
committed
Fix typo in tts_virtual_copyslot.
The code used the destination slot's natts where it intended touse the source slot's natts. Adding an Assert shows that thereis 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 TsunakawaDiscussion:https://postgr.es/m/0A3221C70F24FB45833433255569204D1FD34C0E@G01JPEXMBYT05
1 parentee98ade commit3088138

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
@@ -243,7 +243,7 @@ tts_virtual_materialize(TupleTableSlot *slot)
243243
staticvoid
244244
tts_virtual_copyslot(TupleTableSlot*dstslot,TupleTableSlot*srcslot)
245245
{
246-
TupleDescsrcdesc=dstslot->tts_tupleDescriptor;
246+
TupleDescsrcdesc=srcslot->tts_tupleDescriptor;
247247

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp