| | |
| | | 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 |
| | | } |
| | | |
| | | /** |
| | |
| | | protected function conn_configure($dsn, $dbh) |
| | | { |
| | | // Set date format in case of non-default language (#1488918) |
| | | $this->query("SET DATEFORMAT ymd"); |
| | | $dbh->query("SET DATEFORMAT ymd"); |
| | | } |
| | | |
| | | /** |