mirror of
https://github.com/silverstripe/silverstripe-mssql
synced 2024-10-22 06:05:53 +00:00
Free the result when at the end of a set using mssql drivers
This commit is contained in:
parent
7119d5ac80
commit
1560bad60c
@ -1868,6 +1868,10 @@ class MSSQLQuery extends SS_Query {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
return $data;
|
return $data;
|
||||||
|
} else {
|
||||||
|
// free the handle, no more results
|
||||||
|
mssql_free_result($this->handle);
|
||||||
|
$this->handle = null;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if($data = sqlsrv_fetch_array($this->handle, SQLSRV_FETCH_ASSOC)) {
|
if($data = sqlsrv_fetch_array($this->handle, SQLSRV_FETCH_ASSOC)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user