Skip to content

Commit

Permalink
Merge pull request #16421 from jdavcs/release_23.1_sa20_fixup
Browse files Browse the repository at this point in the history
[23.1] Fix select statement syntax for SQLAlchemy 2.0
  • Loading branch information
bgruening authored Jul 20, 2023
2 parents 53c6fe8 + 79066ec commit 8c04ba9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/galaxy/managers/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ def replace_dataset_ids(path, key, value):

# build one subquery that selects a job with correct job parameters

subq = select([model.Job.id]).where(
subq = select(model.Job.id).where(
and_(
model.Job.tool_id == tool_id,
model.Job.user_id == user.id,
Expand Down Expand Up @@ -393,7 +393,7 @@ def replace_dataset_ids(path, key, value):
)
)

query = select([Job.id]).select_from(Job.table.join(subq, subq.c.id == Job.id))
query = select(Job.id).select_from(Job.table.join(subq, subq.c.id == Job.id))

data_conditions = []

Expand Down

0 comments on commit 8c04ba9

Please sign in to comment.