From e0ef9ff6d7f8cefb1bd1016ceba7c85f23236968 Mon Sep 17 00:00:00 2001 From: John Chilton Date: Mon, 22 Jan 2024 10:06:45 -0500 Subject: [PATCH] Does this fix the SQL for Postgres? --- lib/galaxy/quota/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/galaxy/quota/__init__.py b/lib/galaxy/quota/__init__.py index 43505c6ed2b5..728ed1cb93db 100644 --- a/lib/galaxy/quota/__init__.py +++ b/lib/galaxy/quota/__init__.py @@ -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: @@ -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: