Skip to content

Commit c20bd09

Browse files
authored
Merge pull request #2052 from Jamesbarford/fix/sqlite-sha-column-name
fix - correct column name for pull_request_build SQLite
2 parents 37dc976 + 3d92a83 commit c20bd09

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

database/src/pool/sqlite.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -967,7 +967,7 @@ impl Connection for SqliteConnection {
967967
let count = self
968968
.raw_ref()
969969
.execute(
970-
"update pull_request_build SET complete = 1 where sha = ? and complete = 0",
970+
"update pull_request_build SET complete = 1 where bors_sha = ? and complete = 0",
971971
params![sha],
972972
)
973973
.unwrap();
@@ -977,8 +977,8 @@ impl Connection for SqliteConnection {
977977
assert_eq!(count, 1, "sha is unique column");
978978
self.raw_ref()
979979
.query_row(
980-
"select pr, sha, parent_sha, include, exclude, runs, commit_date, backends from pull_request_build
981-
where sha = ?",
980+
"select pr, bors_sha, parent_sha, include, exclude, runs, commit_date, backends from pull_request_build
981+
where bors_sha = ?",
982982
params![sha],
983983
|row| {
984984
Ok(QueuedCommit {

0 commit comments

Comments
 (0)