Skip to content

Commit

Permalink
Does this fix the SQL for Postgres?
Browse files Browse the repository at this point in the history
  • Loading branch information
jmchilton committed Jan 22, 2024
1 parent 6b45735 commit e0ef9ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/galaxy/quota/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def relabel_quota_for_dataset(self, dataset, from_label: Optional[str], to_label
{with_quota_affected_users}
UPDATE galaxy_user
SET disk_usage = coalesce(disk_usage, 0) + :adjust
WHERE id in quota_affected_users
WHERE id in (select user_id from quota_affected_users)
"""
else:
if for_sqlite:
Expand Down Expand Up @@ -241,7 +241,7 @@ def relabel_quota_for_dataset(self, dataset, from_label: Optional[str], to_label
{with_quota_affected_users}
UPDATE galaxy_user
SET disk_usage = coalesce(disk_usage - :adjust, 0)
WHERE id in quota_affected_users
WHERE id in (select user_id from quota_affected_users)
"""
else:
if for_sqlite:
Expand Down

0 comments on commit e0ef9ff

Please sign in to comment.