Example #1
0
 /**
  * Performs DB-specific ignore case, but only if the column type necessitates it.
  * @param      string $str The expression we want to apply the ignore case formatting to (e.g. the column name).
  * @param      DBAdapter $db
  */
 public function ignoreCase($str, DBAdapter $db)
 {
     if ($this->isText()) {
         return $db->ignoreCase($str);
     } else {
         return $str;
     }
 }