seek() function created for sqlsrv

This commit is contained in:
Geoff Munn 2009-04-06 05:30:15 +00:00
parent a8650e3366
commit b50f0baa6e

View File

@ -1119,8 +1119,19 @@ class MSSQLQuery extends Query {
} }
public function seek($row) { public function seek($row) {
$funcName=$this->funcPrefix . '_data_seek'; if($this->funcPrefix=='mssql')
return $funcName($this->handle, $row); return mssql_data_seek($this->handle, $row);
else {
$count=0;
while ($result=sqlsrv_fetch_array($this->handle)){
if($count==$row)
break;
$count++;
}
return $result;
}
} }
public function numRecords() { public function numRecords() {