Merge pull request #32 from torleif/patch-2

FIX PostgreSQL filter on non text fields - on branch 1.1
This commit is contained in:
Sean Harvey 2014-09-26 11:56:29 +12:00
commit 18fdae9d90

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);