alecpl
2008-08-21 95987c3943bed445555c0dc84986a56792f7ac4c
program/include/rcube_db.php
@@ -69,17 +69,6 @@
  /**
   * PHP 4 object constructor
   *
   * @see  rcube_db::__construct
   */
  function rcube_db($db_dsnw, $db_dsnr='', $pconn=false)
    {
    $this->__construct($db_dsnw, $db_dsnr, $pconn);
    }
  /**
   * Connect to specific database
   *
   * @param  string  DSN for DB connections
@@ -511,6 +500,26 @@
  /**
   * Return SQL statement for case insensitive LIKE
   *
   * @param  string  Field name
   * @param  string  Search value
   * @return string  SQL statement to use in query
   * @access public
   */
  function ilike($column, $value)
    {
    switch($this->db_provider)
      {
      case 'pgsql':
        return $this->quote_identifier($column).' ILIKE '.$this->quote($value);
      default:
        return $this->quote_identifier($column).' LIKE '.$this->quote($value);
      }
    }
  /**
   * Adds a query result and returns a handle ID
   *
   * @param  object  Query handle