From 26af093f902849295e03a453e7ef1b766bc9d754 Mon Sep 17 00:00:00 2001 From: Jakob Cornell Date: Fri, 15 Apr 2022 19:05:20 -0500 Subject: [PATCH] Fix v2 verify output SQL error --- disk_jumble/src/disk_jumble/verify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2