Skip to content

Commit

Permalink
fix what seems to be a bad sql join
Browse files Browse the repository at this point in the history
  • Loading branch information
King-witcher authored and lutter committed Feb 11, 2025
1 parent 82080b1 commit 4b4d583
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions store/postgres/src/primary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1765,10 +1765,10 @@ impl<'a> Connection<'a> {

Ok(s::table
.inner_join(
v::table.on(v::subgraph
v::table.on(v::id
.nullable()
.eq(s::current_version)
.or(v::subgraph.nullable().eq(s::pending_version))),
.or(v::id.nullable().eq(s::pending_version))),
)
.filter(v::deployment.eq(site.deployment.as_str()))
.select(s::name)
Expand Down

0 comments on commit 4b4d583

Please sign in to comment.