diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-04-20 02:23:17 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-04-20 02:23:17 +0000 |
commit | d30a41e79147b29c22027e64fdf53e34d24bafe0 (patch) | |
tree | 67097bfe860bb00973225cb4213e19e6fcc9dc92 /includes/database/pgsql/database.inc | |
parent | 3b4e3d0334f36d76329d40ae5f8795287ec6a85e (diff) | |
download | brdo-d30a41e79147b29c22027e64fdf53e34d24bafe0.tar.gz brdo-d30a41e79147b29c22027e64fdf53e34d24bafe0.tar.bz2 |
Roll-back of #333054; needs more discussion.
Diffstat (limited to 'includes/database/pgsql/database.inc')
-rw-r--r-- | includes/database/pgsql/database.inc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/includes/database/pgsql/database.inc b/includes/database/pgsql/database.inc index f329e2c23..c9dd63a06 100644 --- a/includes/database/pgsql/database.inc +++ b/includes/database/pgsql/database.inc @@ -97,8 +97,13 @@ class DatabaseConnection_pgsql extends DatabaseConnection { } public function mapConditionOperator($operator) { - // We don't want to override any of the defaults. - return NULL; + static $specials = array( + // In PostgreSQL, 'LIKE' is case-sensitive. For case-insensitive LIKE + // statements, we need to use ILIKE instead. + 'LIKE' => array('operator' => 'ILIKE'), + ); + + return isset($specials[$operator]) ? $specials[$operator] : NULL; } /** |