mirror of
https://github.com/silverstripe/silverstripe-mssql
synced 2024-10-22 08:05:53 +02:00
sqlsrv detection improved
This commit is contained in:
parent
e1d9e6ba44
commit
d8a04c98a1
@ -56,7 +56,7 @@ class MSSQLDatabase extends Database {
|
||||
*/
|
||||
public function __construct($parameters) {
|
||||
|
||||
if(function_exists('sqlsrv'))
|
||||
if(function_exists('sqlsrv_connect'))
|
||||
$this->funcPrefix='sqlsrv';
|
||||
else
|
||||
$this->funcPrefix='mssql';
|
||||
@ -1094,7 +1094,7 @@ class MSSQLQuery extends Query {
|
||||
*/
|
||||
public function __construct(MSSQLDatabase $database, $handle) {
|
||||
|
||||
if(function_exists('sqlsrv'))
|
||||
if(function_exists('sqlsrv_connect'))
|
||||
$this->funcPrefix='sqlsrv';
|
||||
else
|
||||
$this->funcPrefix='mssql';
|
||||
|
Loading…
Reference in New Issue
Block a user