BUG 4759 fixing sql server

when query is a update command, should return false in  function next()
This commit is contained in:
Fernando Ontiveros
2011-05-26 17:57:33 -04:00
parent dbb94e78e6
commit 9caaeed486

View File

@@ -108,6 +108,9 @@ class MSSQLResultSet extends ResultSetCommon implements ResultSet {
$this->afterLast(); $this->afterLast();
return false; return false;
} }
if ($this->result === true ) {
return false;
}
$this->fields = mssql_fetch_array($this->result, $this->fetchmode); $this->fields = mssql_fetch_array($this->result, $this->fetchmode);