From: Jakob Cornell Date: Sat, 16 Apr 2022 00:05:20 +0000 (-0500) Subject: Fix v2 verify output SQL error X-Git-Url: https://jcornell.net/gitweb/gitweb.cgi?a=commitdiff_plain;h=26af093f902849295e03a453e7ef1b766bc9d754;p=eros.git Fix v2 verify output SQL error --- diff --git a/disk_jumble/src/disk_jumble/verify.py b/disk_jumble/src/disk_jumble/verify.py index 759876f..1252ff3 100644 --- a/disk_jumble/src/disk_jumble/verify.py +++ b/disk_jumble/src/disk_jumble/verify.py @@ -350,7 +350,7 @@ def do_verify_v2(conn, disk_id: int, disk_file: io.BufferedIOBase, read_size: in ), _ as ( insert into diskjumble.verify_piece_content - values (new_piece.verify_id, 0, %s, %s) + select (verify_id, 0, %s, %s) from new_piece ) insert into diskjumble.verify_piece_fail select verify_id from new_piece