Skip to content

Commit 9a354ad

Browse files
committed
Set proper tuple descriptor in COPY command in case of tuple conversion (#87)
1 parent 7c80097 commit 9a354ad

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/utility_stmt_hooking.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -652,6 +652,7 @@ PathmanCopyFrom(CopyState cstate, Relation parent_rel,
652652

653653
/* Place tuple in tuple slot --- but slot shouldn't free it */
654654
slot = myslot;
655+
ExecSetSlotDescriptor(slot, RelationGetDescr(child_result_rel->ri_RelationDesc));
655656
ExecStoreTuple(tuple, slot, InvalidBuffer, false);
656657

657658
skip_tuple = false;

0 commit comments

Comments
 (0)