mssql: ignore serverproperty error
This change allows connection to Sybase ASE 15
This commit is contained in:
parent
e856e28892
commit
b98d0bcc55
|
@ -147,8 +147,10 @@ if (isset($_GET["mssql"])) {
|
||||||
$this->_link = @mssql_connect($server, $username, $password);
|
$this->_link = @mssql_connect($server, $username, $password);
|
||||||
if ($this->_link) {
|
if ($this->_link) {
|
||||||
$result = $this->query("SELECT SERVERPROPERTY('ProductLevel'), SERVERPROPERTY('Edition')");
|
$result = $this->query("SELECT SERVERPROPERTY('ProductLevel'), SERVERPROPERTY('Edition')");
|
||||||
|
if ($result) {
|
||||||
$row = $result->fetch_row();
|
$row = $result->fetch_row();
|
||||||
$this->server_info = $this->result("sp_server_info 2", 2) . " [$row[0]] $row[1]";
|
$this->server_info = $this->result("sp_server_info 2", 2) . " [$row[0]] $row[1]";
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
$this->error = mssql_get_last_message();
|
$this->error = mssql_get_last_message();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue