diff options
author | Aleksander Machniak <alec@alec.pl> | 2013-06-08 20:14:33 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2013-06-08 20:14:33 +0200 |
commit | d186405c0090772d1c26788dad9ea973f0421390 (patch) | |
tree | 7599a1591914dc7e3172930ab0c33da90d40aee7 /program/lib/Roundcube/rcube_db_sqlsrv.php | |
parent | 66407a75d1eced92d0bd725caa028f54a3b345be (diff) |
Simplified db connection initialisation code
Diffstat (limited to 'program/lib/Roundcube/rcube_db_sqlsrv.php')
-rw-r--r-- | program/lib/Roundcube/rcube_db_sqlsrv.php | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/program/lib/Roundcube/rcube_db_sqlsrv.php b/program/lib/Roundcube/rcube_db_sqlsrv.php index 88473e213..45c41cdaf 100644 --- a/program/lib/Roundcube/rcube_db_sqlsrv.php +++ b/program/lib/Roundcube/rcube_db_sqlsrv.php @@ -29,23 +29,21 @@ class rcube_db_sqlsrv extends rcube_db public $db_provider = 'mssql'; /** - * Driver initialization + * 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 */ - protected function init() + public function __construct($db_dsnw, $db_dsnr = '', $pconn = false) { + parent::__construct($db_dsnw, $db_dsnr, $pconn); + $this->options['identifier_start'] = '['; $this->options['identifier_end'] = ']'; } /** - * Database character set setting - */ - protected function set_charset($charset) - { - // UTF-8 is default - } - - /** * Driver-specific configuration of database connection * * @param array $dsn DSN for DB connections |