summaryrefslogtreecommitdiff
path: root/program/lib/Roundcube/rcube_db_mssql.php
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-06-08 20:14:33 +0200
committerAleksander Machniak <alec@alec.pl>2013-06-08 20:14:33 +0200
commitd186405c0090772d1c26788dad9ea973f0421390 (patch)
tree7599a1591914dc7e3172930ab0c33da90d40aee7 /program/lib/Roundcube/rcube_db_mssql.php
parent66407a75d1eced92d0bd725caa028f54a3b345be (diff)
Simplified db connection initialisation code
Diffstat (limited to 'program/lib/Roundcube/rcube_db_mssql.php')
-rw-r--r--program/lib/Roundcube/rcube_db_mssql.php18
1 files changed, 8 insertions, 10 deletions
diff --git a/program/lib/Roundcube/rcube_db_mssql.php b/program/lib/Roundcube/rcube_db_mssql.php
index 4c005b0d0..3c1b9d71f 100644
--- a/program/lib/Roundcube/rcube_db_mssql.php
+++ b/program/lib/Roundcube/rcube_db_mssql.php
@@ -29,23 +29,21 @@ class rcube_db_mssql 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'] = ']';
}
/**
- * Character setting
- */
- protected function set_charset($charset)
- {
- // UTF-8 is default
- }
-
- /**
* Driver-specific configuration of database connection
*
* @param array $dsn DSN for DB connections