Support case insensitive query for substrings
[infodrom/hallinta] / lib / dbClass.php
index 7dab19f..b3a3822 100644 (file)
@@ -20,6 +20,7 @@ class dbClass_postgresql
   function AffectedRows($rsMain) { return pg_affected_rows($this->conn); }
   function Seek($rsMain,$offset) { return pg_result_seek($rsMain,$offset); }
   function RunParamQuery($query, $phs = array()) {
+    $query = str_replace(' LIKE ?', ' ILIKE ?', $query);
     foreach ($phs as $ph) {   // from php.net
       if ( isset($ph) ) {
         $ph = "'" . pg_escape_string($ph) . "'";