Commit fc684d65 authored by Daniel Bratell's avatar Daniel Bratell Committed by Commit Bot

Adding a const to a static char array

When a different static char broke the build (for unrelated
reasons), I looked through the tree for other static chars without
const. This was the only other one outside third_party and tests.

It's possible the generated machine code is the same, or it might
become better this way. Depends on the compiler/linker/OS.

Change-Id: I11a75cda4de25d468357f36e1afb23c79460ace8
Reviewed-on: https://chromium-review.googlesource.com/c/1278730
Commit-Queue: Victor Costan <pwnall@chromium.org>
Reviewed-by: default avatarVictor Costan <pwnall@chromium.org>
Cr-Commit-Position: refs/heads/master@{#599241}
parent c4d373fb
...@@ -719,7 +719,7 @@ std::unique_ptr<Recovery> Recovery::BeginRecoverDatabase( ...@@ -719,7 +719,7 @@ std::unique_ptr<Recovery> Recovery::BeginRecoverDatabase(
// Copy triggers and views directly to sqlite_master. Any tables they refer // Copy triggers and views directly to sqlite_master. Any tables they refer
// to should already exist. // to should already exist.
static char kCreateMetaItemsSql[] = static const char kCreateMetaItemsSql[] =
"INSERT INTO main.sqlite_master " "INSERT INTO main.sqlite_master "
"SELECT type, name, tbl_name, rootpage, sql " "SELECT type, name, tbl_name, rootpage, sql "
"FROM corrupt.sqlite_master WHERE type='view' OR type='trigger'"; "FROM corrupt.sqlite_master WHERE type='view' OR type='trigger'";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment