[sql] Refactor to remove use of const_cast<>.
commit2eec0a26907429341fb077b6968cc24dcc40378b
authorshess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 24 Jul 2012 01:59:58 +0000 (24 01:59 +0000)
committershess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 24 Jul 2012 01:59:58 +0000 (24 01:59 +0000)
tree53d46fd61207c46dcee9cf701fab44206d64c771
parent35bc8bfe2930a0157c17cdd5bd6abb5c0558f57a
[sql] Refactor to remove use of const_cast<>.

The comments in these cases used incorrect reasoning for why the
const_cast<> was safe.  Whether the SQL statements modify the database
is irrelevant.  Add an internal helper to allow them to correctly
accomplish things in a const situation.

BUG=none
TEST=none

Review URL: https://chromiumcodereview.appspot.com/10736042

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148031 0039d316-1c4b-4281-b951-d872f2087c98
sql/connection.cc
sql/connection.h