From e61d3ebf2c48c8cba32d72f0bacb8ad7650f0f72 Mon Sep 17 00:00:00 2001 From: Bill King Date: Fri, 4 Dec 2009 14:43:07 +1000 Subject: Revert previous commit as it breaks an sqlite assumption. During the exe(), sqlite does it's first stepping, and stores that into the cache. It assumes that that value is still in the cache when fetchNext() is called, and uses the "cached" value to return. --- src/sql/kernel/qsqlcachedresult.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/sql/kernel/qsqlcachedresult.cpp b/src/sql/kernel/qsqlcachedresult.cpp index 2e4d19e..b4a9241 100644 --- a/src/sql/kernel/qsqlcachedresult.cpp +++ b/src/sql/kernel/qsqlcachedresult.cpp @@ -278,11 +278,6 @@ bool QSqlCachedResult::cacheNext() if (d->atEnd) return false; - if(isForwardOnly()) { - d->cache.clear(); - d->cache.resize(d->colCount); - } - if (!gotoNext(d->cache, d->nextIndex())) { d->revertLast(); d->atEnd = true; -- cgit v0.12