fix insert

Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
This commit is contained in:
Jakub Sztandera
2020-01-27 13:10:13 -08:00
parent af61dfd8cd
commit cf86bc6e23
+1 -1
View File
@@ -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)
}