Skip to content

Commit

Permalink
fix: fixed COPY restoration statement string (added semicolon and new…
Browse files Browse the repository at this point in the history
… line)

Closes #179
  • Loading branch information
wwoytenko committed Oct 13, 2024
1 parent 8883889 commit a398e71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/db/postgres/entries/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func (t *Table) Entry() (*toc.Entry, error) {
}
}

var query = `COPY "%s"."%s" (%s) FROM stdin`
var query = "COPY \"%s\".\"%s\" (%s) FROM stdin;\n"
var schemaName, tableName string
if t.LoadViaPartitionRoot && t.RootPtSchema != "" && t.RootPtName != "" {
schemaName = t.RootPtSchema
Expand Down

0 comments on commit a398e71

Please sign in to comment.