Skip to content

Commit d30174e

Browse files
committed
Fix loading of benchmark request index
1 parent f401ebe commit d30174e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

database/src/pool/postgres.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -574,8 +574,9 @@ impl PostgresConnection {
574574
where aid = $1
575575
").await.unwrap(),
576576
load_benchmark_request_index: conn.prepare("
577-
select tag, status
578-
from benchmark_request
577+
SELECT tag, status
578+
FROM benchmark_request
579+
WHERE tag IS NOT NULL
579580
").await.unwrap(),
580581
}),
581582
conn,
@@ -1506,7 +1507,7 @@ where
15061507
],
15071508
)
15081509
.await
1509-
.context("failed to execute UPDATE benchmark_request")?;
1510+
.context("failed to attach SHAs to try benchmark request")?;
15101511

15111512
Ok(())
15121513
}
@@ -1525,7 +1526,7 @@ where
15251526
backends,
15261527
profiles
15271528
FROM benchmark_request
1528-
WHERE status = ANY('{BENCHMARK_REQUEST_STATUS_ARTIFACTS_READY_STR}', '{BENCHMARK_REQUEST_STATUS_IN_PROGRESS_STR}')"#
1529+
WHERE status IN('{BENCHMARK_REQUEST_STATUS_ARTIFACTS_READY_STR}', '{BENCHMARK_REQUEST_STATUS_IN_PROGRESS_STR}')"#
15291530
);
15301531

15311532
let rows = self

0 commit comments

Comments
 (0)