diff options
author | benm@chromium.org <benm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-10 20:19:28 +0000 |
---|---|---|
committer | benm@chromium.org <benm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-10 20:19:28 +0000 |
commit | c0714dfcceb93df1dda0af23d72fc29a5399556c (patch) | |
tree | a99f9fac17ba90179109ee1c83ae012676e2a73c /sql | |
parent | cb433410bade1544b021bf670690724057e1bb2b (diff) | |
download | chromium_src-c0714dfcceb93df1dda0af23d72fc29a5399556c.zip chromium_src-c0714dfcceb93df1dda0af23d72fc29a5399556c.tar.gz chromium_src-c0714dfcceb93df1dda0af23d72fc29a5399556c.tar.bz2 |
Fix Android build.
Android does not have toLower in it's <algorithm>, use
StringToLowerASCII instead.
Review URL: http://codereview.chromium.org/9384004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121505 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sql')
-rw-r--r-- | sql/statement.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sql/statement.cc b/sql/statement.cc index 4fa3459..7bc6adf 100644 --- a/sql/statement.cc +++ b/sql/statement.cc @@ -4,9 +4,8 @@ #include "sql/statement.h" -#include <algorithm> - #include "base/logging.h" +#include "base/string_util.h" #include "base/utf_string_conversions.h" #include "third_party/sqlite/sqlite3.h" @@ -159,8 +158,7 @@ ColType Statement::ColumnType(int col) const { ColType Statement::DeclaredColumnType(int col) const { std::string column_type(sqlite3_column_decltype(ref_->stmt(), col)); - std::transform(column_type.begin(), column_type.end(), column_type.begin(), - ::tolower); + StringToLowerASCII(&column_type); if (column_type == "integer") return COLUMN_TYPE_INTEGER; |