mirror of
https://github.com/silverstripe/silverstripe-postgresql
synced 2024-10-22 17:05:45 +02:00
parent
4f6a9523f6
commit
eac309696d
@ -2108,6 +2108,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';
|
||||||
}
|
}
|
||||||
|
|
||||||
return sprintf("%s %s '%s'", $field, $comp, $value);
|
return sprintf("%s %s '%s'", $field, $comp, $value);
|
||||||
|
Loading…
Reference in New Issue
Block a user