mirror of
https://github.com/silverstripe/silverstripe-mssql
synced 2024-10-22 08:05:53 +02:00
Updated MSSQLDatabase and MSSQLQuery to suit r84061
This commit is contained in:
parent
396384e709
commit
ddbd0fda5d
@ -62,8 +62,6 @@ class MSSQLDatabase extends Database {
|
|||||||
* - database: The database to connect to
|
* - database: The database to connect to
|
||||||
*/
|
*/
|
||||||
public function __construct($parameters) {
|
public function __construct($parameters) {
|
||||||
parent::__construct();
|
|
||||||
|
|
||||||
if(function_exists('mssql_connect')) {
|
if(function_exists('mssql_connect')) {
|
||||||
$this->mssql = true;
|
$this->mssql = true;
|
||||||
} else if(function_exists('sqlsrv_connect')) {
|
} else if(function_exists('sqlsrv_connect')) {
|
||||||
@ -1332,8 +1330,6 @@ class MSSQLQuery extends Query {
|
|||||||
$this->database = $database;
|
$this->database = $database;
|
||||||
$this->handle = $handle;
|
$this->handle = $handle;
|
||||||
$this->mssql = $mssql;
|
$this->mssql = $mssql;
|
||||||
|
|
||||||
parent::__construct();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function __destroy() {
|
public function __destroy() {
|
||||||
|
Loading…
Reference in New Issue
Block a user