mirror of
https://github.com/silverstripe/silverstripe-postgresql
synced 2024-10-22 17:05:45 +02:00
Merge pull request #26 from torleif/patch-1
FIX postgres can filter on non text fields
This commit is contained in:
commit
846f31b31c
@ -420,6 +420,7 @@ class PostgreSQLDatabase extends SS_Database {
|
|||||||
} else {
|
} else {
|
||||||
$comp = ($caseSensitive === true) ? 'LIKE' : 'ILIKE';
|
$comp = ($caseSensitive === true) ? 'LIKE' : 'ILIKE';
|
||||||
if($negate) $comp = 'NOT ' . $comp;
|
if($negate) $comp = 'NOT ' . $comp;
|
||||||
|
$field.='::text';
|
||||||
}
|
}
|
||||||
|
|
||||||
if($parameterised) {
|
if($parameterised) {
|
||||||
|
Loading…
Reference in New Issue
Block a user