Skip to content

Commit 389ec25

Browse files
committed
Set proper tuple descriptor in COPY command in case of tuple conversion (#87)
1 parent 26a78b8 commit 389ec25

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
@@ -587,6 +587,7 @@ PathmanCopyFrom(CopyState cstate, Relation parent_rel,
587587

588588
/* Place tuple in tuple slot --- but slot shouldn't free it */
589589
slot = myslot;
590+
ExecSetSlotDescriptor(slot, RelationGetDescr(child_result_rel->ri_RelationDesc));
590591
ExecStoreTuple(tuple, slot, InvalidBuffer, false);
591592

592593
skip_tuple = false;

0 commit comments

Comments
 (0)