mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Merge branch 'w14_MDL-39024_m25_mssqlseek' of git://github.com/skodak/moodle
This commit is contained in:
commit
a035bc9b6d
1 changed files with 5 additions and 1 deletions
|
@ -713,7 +713,11 @@ class mssql_native_moodle_database extends moodle_database {
|
||||||
$this->query_end($result);
|
$this->query_end($result);
|
||||||
|
|
||||||
if ($limitfrom) { // Skip $limitfrom records
|
if ($limitfrom) { // Skip $limitfrom records
|
||||||
mssql_data_seek($result, $limitfrom);
|
if (!@mssql_data_seek($result, $limitfrom)) {
|
||||||
|
// Nothing, most probably seek past the end.
|
||||||
|
mssql_free_result($result);
|
||||||
|
$result = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->create_recordset($result);
|
return $this->create_recordset($result);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue