From ceace514d36d017ab4bfb64e8b0f5bc40f2ec2a6 Mon Sep 17 00:00:00 2001 From: Abdul Rabbani Date: Fri, 3 Jun 2022 11:30:21 -0400 Subject: [PATCH] Update checkout statement for historic --- pkg/beaconclient/processhistoric.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/beaconclient/processhistoric.go b/pkg/beaconclient/processhistoric.go index 006544c..eb3e71b 100644 --- a/pkg/beaconclient/processhistoric.go +++ b/pkg/beaconclient/processhistoric.go @@ -40,7 +40,7 @@ var ( checkHpEntryStmt string = `SELECT * FROM ethcl.historic_process WHERE checked_out=false;` // Used to checkout a row from the ethcl.historic_process table lockHpEntryStmt string = `UPDATE ethcl.historic_process - SET checked_out=true + SET checked_out=true, checked_out_by=$3 WHERE start_slot=$1 AND end_slot=$2;` // Used to delete an entry from the ethcl.historic_process table deleteHpEntryStmt string = `DELETE FROM ethcl.historic_process