Skip to content

Commit 03b6dc5

Browse files
committed
Do an inner join instead of left join on get_error query
1 parent 21979c8 commit 03b6dc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

database/src/pool/postgres.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ impl PostgresConnection {
430430
.await
431431
.unwrap(),
432432
get_error: conn.prepare("select crate, error from error_series
433-
left join error on error.series = error_series.id and aid = $1").await.unwrap(),
433+
inner join error on error.series = error_series.id and aid = $1").await.unwrap(),
434434
select_self_query_series: conn.prepare("select id from self_profile_query_series where crate = $1 and profile = $2 and cache = $3 and query = $4").await.unwrap(),
435435
insert_self_query_series: conn.prepare("insert into self_profile_query_series (crate, profile, cache, query) VALUES ($1, $2, $3, $4) ON CONFLICT DO NOTHING RETURNING id").await.unwrap(),
436436
insert_pstat_series: conn.prepare("insert into pstat_series (crate, profile, cache, statistic) VALUES ($1, $2, $3, $4) ON CONFLICT DO NOTHING RETURNING id").await.unwrap(),

0 commit comments

Comments
 (0)