diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-07 20:10:30 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-07 20:10:30 +0000 |
commit | 3fb6b1579d361e137d629534edbc986696423e87 (patch) | |
tree | 09fd32ee87fee4626400c0fdff7284b9847058b7 /app | |
parent | 86281adbe4f9e4c2eae038cf15706bf0d105483e (diff) | |
download | chromium_src-3fb6b1579d361e137d629534edbc986696423e87.zip chromium_src-3fb6b1579d361e137d629534edbc986696423e87.tar.gz chromium_src-3fb6b1579d361e137d629534edbc986696423e87.tar.bz2 |
Fix SQL preloading. I did Run() with a SELECT which produces data, so it
reports failure. This meant we were never preloading data.
TEST=covered by perf tests
http://crbug.com/23854
Review URL: http://codereview.chromium.org/265018
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28301 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'app')
-rw-r--r-- | app/sql/connection.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/sql/connection.cc b/app/sql/connection.cc index ac1c545..dd3756e 100644 --- a/app/sql/connection.cc +++ b/app/sql/connection.cc @@ -92,7 +92,7 @@ void Connection::Preload() { if (!DoesTableExist("meta")) return; Statement dummy(GetUniqueStatement("SELECT * FROM meta")); - if (!dummy || !dummy.Run()) + if (!dummy || !dummy.Step()) return; sqlite3Preload(db_); |