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 Aug 24, 2024
1 parent e2eb25d commit c9a055d
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 c9a055d

Please sign in to comment.