FIX postgres filter on non text fields - on branch 1.1

See 7626d74bee
This commit is contained in:
torleif 2014-07-25 21:25:54 +12:00
parent 4f6a9523f6
commit eac309696d
1 changed files with 1 additions and 0 deletions

View File

@ -2108,6 +2108,7 @@ class PostgreSQLDatabase extends SS_Database {
} else {
$comp = ($caseSensitive === true) ? 'LIKE' : 'ILIKE';
if($negate) $comp = 'NOT ' . $comp;
$field.='::text';
}
return sprintf("%s %s '%s'", $field, $comp, $value);