Skip to content
Snippets Groups Projects
Commit 3af0b234 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #1184082 by googletorp: like queries failing on postgres with...

- Patch #1184082 by googletorp: like queries failing on postgres with standard_conforming_strings() turned on.
parent 05030fd9
No related branches found
No related tags found
No related merge requests found
......@@ -145,10 +145,9 @@ public function mapConditionOperator($operator) {
if (!isset($specials)) {
$specials = array(
// In PostgreSQL, 'LIKE' is case-sensitive. For case-insensitive LIKE
// statements, we need to use ILIKE instead. Use backslash for escaping
// wildcard characters.
'LIKE' => array('operator' => 'ILIKE', 'postfix' => ' ESCAPE ' . $this->quote("\\")),
'NOT LIKE' => array('operator' => 'NOT ILIKE', 'postfix' => ' ESCAPE ' . $this->quote("\\")),
// statements, we need to use ILIKE instead.
'LIKE' => array('operator' => 'ILIKE'),
'NOT LIKE' => array('operator' => 'NOT ILIKE'),
);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment