fix insert
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
This commit is contained in:
parent
af61dfd8cd
commit
cf86bc6e23
@ -617,7 +617,7 @@ create temp table c (like blocks_challenges excluding constraints) on commit dro
|
|||||||
return xerrors.Errorf("s2 close: %w", err)
|
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)
|
return xerrors.Errorf("blk put: %w", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user