Fix filter expression handling when lowering to achieve case-insensitivity
fixes #8435
This commit is contained in:
parent
1c494b2b64
commit
e588ea2714
|
@ -290,7 +290,12 @@ abstract class IdoQuery extends DbQuery
|
|||
&& strpos($filter->getColumn(), 'LOWER') !== 0
|
||||
) {
|
||||
$filter->setColumn('LOWER(' . $filter->getColumn() . ')');
|
||||
$filter->setExpression(strtolower($filter->getExpression()));
|
||||
$expression = $filter->getExpression();
|
||||
if (is_array($expression)) {
|
||||
$filter->setExpression(array_map('strtolower', $expression));
|
||||
} else {
|
||||
$filter->setExpression(strtolower($expression));
|
||||
}
|
||||
}
|
||||
} else {
|
||||
foreach ($filter->filters() as $chainedFilter) {
|
||||
|
|
Loading…
Reference in New Issue