sqlsrv detection improved

This commit is contained in:
Geoff Munn 2009-04-06 02:42:58 +00:00
parent e1d9e6ba44
commit d8a04c98a1

View File

@ -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';