Skip to content

Commit

Permalink
Merge pull request #26 from torleif/patch-1
Browse files Browse the repository at this point in the history
FIX postgres can filter on non text fields
  • Loading branch information
Sean Harvey committed Sep 24, 2014
2 parents 731e25f + 7626d74 commit 846f31b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions code/PostgreSQLDatabase.php
Expand Up @@ -420,6 +420,7 @@ public function comparisonClause($field, $value, $exact = false, $negate = false
} else {
$comp = ($caseSensitive === true) ? 'LIKE' : 'ILIKE';
if($negate) $comp = 'NOT ' . $comp;
$field.='::text';
}

if($parameterised) {
Expand Down

0 comments on commit 846f31b

Please sign in to comment.