IdoQuery: Fix method isCaseInsensitive() returning true for .. everything ..

..with a PostgreSQL backend.

refs #10364
This commit is contained in:
Johannes Meyer 2015-11-10 16:05:05 +01:00
parent 52606eb2e7
commit 3d735693db

View File

@ -600,7 +600,7 @@ abstract class IdoQuery extends DbQuery
} }
if (! empty($this->columnsWithoutCollation)) { if (! empty($this->columnsWithoutCollation)) {
return in_array($column, $this->columnsWithoutCollation) || strpos($column, 'LOWER') !== 0; return in_array($column, $this->columnsWithoutCollation) || strpos($column, 'LOWER') === 0;
} }
return preg_match('/ COLLATE .+$/', $column) === 1; return preg_match('/ COLLATE .+$/', $column) === 1;