Changeset 390 in subversion


Ignore:
Timestamp:
Dec 1, 2006 1:29:06 PM (6 years ago)
Author:
thomasb
Message:

Applied the latest changes to MDB2 wrapper

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/include/rcube_mdb2.inc

    r341 r390  
    6060   * @param  string  Optional DSN for read only operations 
    6161   */ 
    62   function __construct($db_dsnw, $db_dsnr='') 
     62  function __construct($db_dsnw, $db_dsnr='', $pconn=false) 
    6363    { 
    6464    if ($db_dsnr=='') 
     
    6767    $this->db_dsnw = $db_dsnw; 
    6868    $this->db_dsnr = $db_dsnr; 
    69  
     69    $this->db_pconn = $pconn; 
     70     
    7071    $dsn_array = MDB2::parseDSN($db_dsnw); 
    7172    $this->db_provider = $dsn_array['phptype']; 
     
    9495    { 
    9596    // Use persistent connections if available 
    96     $dbh = MDB2::connect($dsn, array('persistent' => TRUE, 'portability' => MDB2_PORTABILITY_ALL ^ MDB2_PORTABILITY_EMPTY_TO_NULL)); 
     97    $dbh = MDB2::connect($dsn, array('persistent' => $this->db_pconn, 'portability' => MDB2_PORTABILITY_ALL ^ MDB2_PORTABILITY_EMPTY_TO_NULL)); 
    9798 
    9899    if (PEAR::isError($dbh)) 
     
    286287      return FALSE; 
    287288 
    288     return $result; 
     289    return $this->_get_result($result); 
    289290    } 
    290291 
Note: See TracChangeset for help on using the changeset viewer.