src/sql/kernel/qsqlcachedresult.cpp
changeset 3 41300fa6a67c
parent 0 1918ee327afb
child 4 3b1da2848fc7
equal deleted inserted replaced
2:56cd8111b7f7 3:41300fa6a67c
   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     }