Free the result when at the end of a set using mssql drivers

This commit is contained in:
Sean Harvey 2013-05-22 22:38:05 +12:00
parent 7119d5ac80
commit 1560bad60c

View File

@ -1868,6 +1868,10 @@ class MSSQLQuery extends SS_Query {
}
}
return $data;
} else {
// free the handle, no more results
mssql_free_result($this->handle);
$this->handle = null;
}
} else {
if($data = sqlsrv_fetch_array($this->handle, SQLSRV_FETCH_ASSOC)) {