From 3d92a83e1f317d714ae910c8593c3de1c4c40cba Mon Sep 17 00:00:00 2001 From: James Barford-Evans Date: Tue, 4 Mar 2025 11:26:46 +0000 Subject: [PATCH] fix - correct column name for pull_request_build SQLite --- database/src/pool/sqlite.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/database/src/pool/sqlite.rs b/database/src/pool/sqlite.rs index d7abd5373..9ed540020 100644 --- a/database/src/pool/sqlite.rs +++ b/database/src/pool/sqlite.rs @@ -967,7 +967,7 @@ impl Connection for SqliteConnection { let count = self .raw_ref() .execute( - "update pull_request_build SET complete = 1 where sha = ? and complete = 0", + "update pull_request_build SET complete = 1 where bors_sha = ? and complete = 0", params![sha], ) .unwrap(); @@ -977,8 +977,8 @@ impl Connection for SqliteConnection { assert_eq!(count, 1, "sha is unique column"); self.raw_ref() .query_row( - "select pr, sha, parent_sha, include, exclude, runs, commit_date, backends from pull_request_build - where sha = ?", + "select pr, bors_sha, parent_sha, include, exclude, runs, commit_date, backends from pull_request_build + where bors_sha = ?", params![sha], |row| { Ok(QueuedCommit {