1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-12 09:34:10 +02:00

mssql: ignore serverproperty error

This change allows connection to Sybase ASE 15
This commit is contained in:
Gintautas Miselis
2018-05-09 14:43:01 +01:00
committed by Jakub Vrana
parent e856e28892
commit b98d0bcc55

View File

@@ -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();
}