コード例 #1
0
 /**
  * Object constructor
  *
  * @param string $db_dsnw DSN for read/write operations
  * @param string $db_dsnr Optional DSN for read only operations
  * @param bool   $pconn   Enables persistent connections
  */
 public function __construct($db_dsnw, $db_dsnr = '', $pconn = false)
 {
     parent::__construct($db_dsnw, $db_dsnr, $pconn);
     // SQL identifiers quoting
     $this->options['identifier_start'] = '`';
     $this->options['identifier_end'] = '`';
 }
コード例 #2
0
 /**
  * Object constructor
  *
  * @param string $db_dsnw DSN for read/write operations
  * @param string $db_dsnr Optional DSN for read only operations
  * @param bool   $pconn   Enables persistent connections
  */
 public function __construct($db_dsnw, $db_dsnr = '', $pconn = false)
 {
     if (version_compare(PHP_VERSION, '5.3.0', '<')) {
         rcube::raise_error(array('code' => 600, 'type' => 'db', 'line' => __LINE__, 'file' => __FILE__, 'message' => "MySQL driver requires PHP >= 5.3, current version is " . PHP_VERSION), true, true);
     }
     parent::__construct($db_dsnw, $db_dsnr, $pconn);
     // SQL identifiers quoting
     $this->options['identifier_start'] = '`';
     $this->options['identifier_end'] = '`';
 }
コード例 #3
0
 /**
  * Object constructor
  *
  * @param string $db_dsnw DSN for read/write operations
  * @param string $db_dsnr Optional DSN for read only operations
  * @param bool   $pconn   Enables persistent connections
  */
 public function __construct($db_dsnw, $db_dsnr = '', $pconn = false)
 {
     parent::__construct($db_dsnw, $db_dsnr, $pconn);
     $this->options['identifier_start'] = '[';
     $this->options['identifier_end'] = ']';
 }