equal
deleted
inserted
replaced
276 bool QSqlCachedResult::cacheNext() |
276 bool QSqlCachedResult::cacheNext() |
277 { |
277 { |
278 if (d->atEnd) |
278 if (d->atEnd) |
279 return false; |
279 return false; |
280 |
280 |
|
281 if(isForwardOnly()) { |
|
282 d->cache.clear(); |
|
283 d->cache.resize(d->colCount); |
|
284 } |
|
285 |
281 if (!gotoNext(d->cache, d->nextIndex())) { |
286 if (!gotoNext(d->cache, d->nextIndex())) { |
282 d->revertLast(); |
287 d->revertLast(); |
283 d->atEnd = true; |
288 d->atEnd = true; |
284 return false; |
289 return false; |
285 } |
290 } |