fix: [performance] query tweak to fool old crappy versions of mysql

pull/4049/head
iglocska 2019-01-24 16:20:57 +01:00
parent 2e9b07c780
commit 9512043de9
1 changed files with 1 additions and 1 deletions

View File

@ -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;