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);
|
||||
if ($this->_link) {
|
||||
$result = $this->query("SELECT SERVERPROPERTY('ProductLevel'), SERVERPROPERTY('Edition')");
|
||||
$row = $result->fetch_row();
|
||||
$this->server_info = $this->result("sp_server_info 2", 2) . " [$row[0]] $row[1]";
|
||||
if ($result) {
|
||||
$row = $result->fetch_row();
|
||||
$this->server_info = $this->result("sp_server_info 2", 2) . " [$row[0]] $row[1]";
|
||||
}
|
||||
} else {
|
||||
$this->error = mssql_get_last_message();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue