From 6f7be5ee5ca48c1789c7b28fa867a52df96c708d Mon Sep 17 00:00:00 2001
From: Carsten Brandt <mail@cebe.cc>
Date: Tue, 29 Apr 2014 13:22:31 +0200
Subject: [PATCH] filterWhere for postgres ILIKE

fixes #3252
---
 framework/db/QueryTrait.php | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/framework/db/QueryTrait.php b/framework/db/QueryTrait.php
index 541c4fa..7b401bb 100644
--- a/framework/db/QueryTrait.php
+++ b/framework/db/QueryTrait.php
@@ -259,6 +259,10 @@ trait QueryTrait
             case 'OR LIKE':
             case 'NOT LIKE':
             case 'OR NOT LIKE':
+            case 'ILIKE': // PostgreSQL operator for case insensitive LIKE
+            case 'OR ILIKE':
+            case 'NOT ILIKE':
+            case 'OR NOT ILIKE':
                 if (array_key_exists(1, $condition) && $this->isEmpty($condition[1])) {
                     return [];
                 }
--
libgit2 0.27.1