Skip to content

Commit

Permalink
fix insert
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Sztandera <[email protected]>
  • Loading branch information
Kubuxu committed Jan 27, 2020
1 parent af61dfd commit cf86bc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/lotus-chainwatch/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ create temp table c (like blocks_challenges excluding constraints) on commit dro
return xerrors.Errorf("s2 close: %w", err)
}

if _, err := tx.Exec(`insert into blocks_challenges * from c on conflict do nothing `); err != nil {
if _, err := tx.Exec(`insert into blocks_challenges select * from c on conflict do nothing `); err != nil {
return xerrors.Errorf("blk put: %w", err)
}

Expand Down

0 comments on commit cf86bc6

Please sign in to comment.