]> git.joonet.de Git - adminer.git/commitdiff
Fix MS SQL Driver to not show warnings for version fetching on connection and to...
authorLoren Klingman <lklingman@sbts.edu>
Tue, 30 Dec 2014 15:54:28 +0000 (10:54 -0500)
committerJakub Vrána <jakub@vrana.cz>
Sun, 19 Feb 2017 10:35:24 +0000 (11:35 +0100)
adminer/drivers/mssql.inc.php

index 6759004399b1c21a86f0713c18dd0776f542b625..d99e50927cc891ca5730d6c0af508e5ad73ff3ad 100644 (file)
@@ -164,7 +164,7 @@ if (isset($_GET["mssql"])) {
                        }
 
                        function query($query, $unbuffered = false) {
-                               $result = mssql_query($query, $this->_link); //! $unbuffered
+                               $result = @mssql_query($query, $this->_link); //! $unbuffered
                                $this->error = "";
                                if (!$result) {
                                        $this->error = mssql_get_last_message();
@@ -186,7 +186,7 @@ if (isset($_GET["mssql"])) {
                        }
 
                        function next_result() {
-                               return mssql_next_result($this->_result);
+                               return mssql_next_result($this->_result->_result);
                        }
 
                        function result($query, $field = 0) {