Changeset 390 in subversion
- Timestamp:
- Dec 1, 2006 1:29:06 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/program/include/rcube_mdb2.inc
r341 r390 60 60 * @param string Optional DSN for read only operations 61 61 */ 62 function __construct($db_dsnw, $db_dsnr='' )62 function __construct($db_dsnw, $db_dsnr='', $pconn=false) 63 63 { 64 64 if ($db_dsnr=='') … … 67 67 $this->db_dsnw = $db_dsnw; 68 68 $this->db_dsnr = $db_dsnr; 69 69 $this->db_pconn = $pconn; 70 70 71 $dsn_array = MDB2::parseDSN($db_dsnw); 71 72 $this->db_provider = $dsn_array['phptype']; … … 94 95 { 95 96 // 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)); 97 98 98 99 if (PEAR::isError($dbh)) … … 286 287 return FALSE; 287 288 288 return $ result;289 return $this->_get_result($result); 289 290 } 290 291
Note: See TracChangeset
for help on using the changeset viewer.
