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
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user