summaryrefslogtreecommitdiffstats
path: root/chrome/browser/history/url_database.cc
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-29 18:24:01 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-29 18:24:01 +0000
commitab184cc284a629e1139363257d1b9082b4cb2e33 (patch)
tree384f681e12898a3c2ff7c3c7e38aa9ba57583d63 /chrome/browser/history/url_database.cc
parent70f45c3f2b52eb71f15e707c9f21ff98c221758e (diff)
downloadchromium_src-ab184cc284a629e1139363257d1b9082b4cb2e33.zip
chromium_src-ab184cc284a629e1139363257d1b9082b4cb2e33.tar.gz
chromium_src-ab184cc284a629e1139363257d1b9082b4cb2e33.tar.bz2
Trivial patch: add whitespace to some SQL statements to turn "INSERT INTO foo(bar,baz)VALUES(?,?)" into "INSERT INTO foo (bar, baz) VALUES (?,?)" (which is the way we have it in most of our code).
This was annoying me while I tried to track down cases where we omitted the appropriate fieldnames from our SQL statements. Review URL: http://codereview.chromium.org/8855 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4145 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/history/url_database.cc')
-rw-r--r--chrome/browser/history/url_database.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/history/url_database.cc b/chrome/browser/history/url_database.cc
index 83b038b..b8bf2c9 100644
--- a/chrome/browser/history/url_database.cc
+++ b/chrome/browser/history/url_database.cc
@@ -113,9 +113,9 @@ URLID URLDatabase::AddURLInternal(const history::URLRow& info,
// HISTORY_URL_ROW_FIELDS because that specifies the table name which is
// invalid in the insert syntax.
#define ADDURL_COMMON_SUFFIX \
- "(url,title,visit_count,typed_count,"\
- "last_visit_time,hidden,favicon_id)"\
- "VALUES(?,?,?,?,?,?,?)"
+ " (url, title, visit_count, typed_count, "\
+ "last_visit_time, hidden, favicon_id) "\
+ "VALUES (?,?,?,?,?,?,?)"
const char* statement_name;
const char* statement_sql;
if (is_temporary) {