summaryrefslogtreecommitdiffstats
path: root/src/sql
diff options
context:
space:
mode:
authorBill King <bill.king@nokia.com>2009-12-04 04:43:07 (GMT)
committerBill King <bill.king@nokia.com>2009-12-04 04:43:07 (GMT)
commite61d3ebf2c48c8cba32d72f0bacb8ad7650f0f72 (patch)
treec2665c55d583b6bef7eefa05a59bde7926f4bbcc /src/sql
parent1d6be599f5c12e9ce23bbdf081a103aa62618e15 (diff)
downloadQt-e61d3ebf2c48c8cba32d72f0bacb8ad7650f0f72.zip
Qt-e61d3ebf2c48c8cba32d72f0bacb8ad7650f0f72.tar.gz
Qt-e61d3ebf2c48c8cba32d72f0bacb8ad7650f0f72.tar.bz2
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.
Diffstat (limited to 'src/sql')
-rw-r--r--src/sql/kernel/qsqlcachedresult.cpp5
1 files changed, 0 insertions, 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;