Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit f217761

Browse files
committed
Fix bug in clearing of virtual tuple slot.
I broke/typoed this in 4da597e. Astonishingly this mostly doesn't cause breakage, except when trying to change the tuple descriptor of a slot (because TTS_FLAG_FIXED is assumed to be set). Author: Andres Freund
1 parent 93473c6 commit f217761

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/executor/execTuples.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ tts_virtual_clear(TupleTableSlot *slot)
114114
pfree(vslot->data);
115115
vslot->data = NULL;
116116

117-
slot->tts_flags = ~TTS_FLAG_SHOULDFREE;
117+
slot->tts_flags &= ~TTS_FLAG_SHOULDFREE;
118118
}
119119

120120
slot->tts_nvalid = 0;

0 commit comments

Comments
 (0)