Merge pull request #4201 from Icinga/fix/single-negated-membership-filters-on-postgres-4196

Fix single negated membership filters with PostgreSQL
This commit is contained in:
Johannes Meyer 2020-07-06 08:44:21 +02:00 committed by GitHub
commit 6492a28166
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -572,7 +572,7 @@ abstract class IdoQuery extends DbQuery
$column = $subQuery->aliasToColumnName($alias);
if (isset($this->caseInsensitiveColumns[$subQuery->aliasToTableName($alias)][$alias])) {
$column = 'LOWER( ' . $column . ' )';
$subQueryFilter->setExpression(array_map('strtolower', $subQueryFilter->getExpression()));
$subQueryFilter->setExpression(array_map('strtolower', (array) $subQueryFilter->getExpression()));
}
$additional = null;