diff options
author | dumi@chromium.org <dumi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-11 02:14:10 +0000 |
---|---|---|
committer | dumi@chromium.org <dumi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-11 02:14:10 +0000 |
commit | 3b746394eae6c84c1fad525845f6a28a6cafae97 (patch) | |
tree | 920258c3acd97c67a741ef9a102870e43d7e36f0 /tools/page_cycler | |
parent | 2cc098e42e7b46513687c210de4bacbae4009ec3 (diff) | |
download | chromium_src-3b746394eae6c84c1fad525845f6a28a6cafae97.zip chromium_src-3b746394eae6c84c1fad525845f6a28a6cafae97.tar.gz chromium_src-3b746394eae6c84c1fad525845f6a28a6cafae97.tar.bz2 |
Minor fix, try to create the test table only if it doesn't exist.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/790007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41239 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/page_cycler')
-rw-r--r-- | tools/page_cycler/database/common.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/page_cycler/database/common.js b/tools/page_cycler/database/common.js index 75c50e4..6ada567 100644 --- a/tools/page_cycler/database/common.js +++ b/tools/page_cycler/database/common.js @@ -52,7 +52,7 @@ function runPerformanceTest(params) { db.transaction( function(tx) { - tx.executeSql('CREATE TABLE Test (ID INT, Foo TEXT)', [], + tx.executeSql('CREATE TABLE IF NOT EXISTS Test (ID INT, Foo TEXT)', [], function(tx, data) {}, function(tx, error) {}); tx.executeSql('DELETE FROM Test'); if (params.insertRowsAtSetup) { |