From 9512043de93f08f4d1eb80c22f83510f6d245dc0 Mon Sep 17 00:00:00 2001 From: iglocska Date: Thu, 24 Jan 2019 16:20:57 +0100 Subject: [PATCH] fix: [performance] query tweak to fool old crappy versions of mysql --- app/Model/Attribute.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Model/Attribute.php b/app/Model/Attribute.php index acaecf4d4..cb0c8fba2 100644 --- a/app/Model/Attribute.php +++ b/app/Model/Attribute.php @@ -1804,7 +1804,7 @@ class Attribute extends AppModel ), 'Attribute.disable_correlation' => 0, 'Event.disable_correlation' => 0, - 'Attribute.deleted' => 0 + '(Attribute.deleted + 0)' => 0 ); if (!empty($extraConditions)) { $conditions['OR'][] = $extraConditions;