Skip to content

Commit 4589cb0

Browse files
committed
#14355: Use left join for null comparisons
1 parent 7a3ea4e commit 4589cb0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/code/Magento/Eav/Model/Entity/Collection/AbstractCollection.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1498,6 +1498,10 @@ protected function _getAttributeConditionSql($attribute, $condition, $joinType =
14981498
$condition
14991499
);
15001500
} else {
1501+
if (isset($condition['null'])) {
1502+
$joinType = 'left';
1503+
}
1504+
15011505
$this->_addAttributeJoin($attribute, $joinType);
15021506
if (isset($this->_joinAttributes[$attribute]['condition_alias'])) {
15031507
$field = $this->_joinAttributes[$attribute]['condition_alias'];

0 commit comments

Comments
 (0)