From f73a913679d816544e6692f2ff3b8ae60007dfee Mon Sep 17 00:00:00 2001 From: brandonkelly Date: Thu, 5 Dec 2024 09:28:39 -0800 Subject: [PATCH] Missing quotes --- src/services/Gc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/Gc.php b/src/services/Gc.php index b711eecc67d..3b234f51c13 100644 --- a/src/services/Gc.php +++ b/src/services/Gc.php @@ -556,7 +556,7 @@ private function _deleteOrphanedFkRows(): void } else { $sql = <<name t -WHERE t.$fkColumn IS NOT NULL +WHERE t."$fkColumn" IS NOT NULL AND NOT EXISTS ( SELECT * FROM $refTable WHERE "$pkColumn" = t."$fkColumn"