Raymond Wooninck
2011-09-20 16:10:49 +00:00
committed by Git OBS Bridge
parent 8f37fc5c2e
commit ce43a69833
30 changed files with 2221 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
--- chromium-20100218svn39394/src/chrome/browser/sync/util/sqlite_utils.cc.no-sqlite-debugging 2010-02-18 18:23:31.000000000 -0500
+++ chromium-20100218svn39394/src/chrome/browser/sync/util/sqlite_utils.cc 2010-02-19 15:40:50.338131672 -0500
@@ -33,8 +33,6 @@ class DebugSQLErrorHandler: public Vanil
public:
virtual int HandleError(int error, sqlite3* db) {
error_ = error;
- NOTREACHED() << "sqlite error " << error
- << " db " << static_cast<void*>(db);
return error;
}
};
@@ -280,8 +278,7 @@ int SQLStatement::prepare(sqlite3* db, c
DCHECK(!stmt_);
int rv = sqlite3_prepare_v2(db, sql, sql_len, &stmt_, NULL);
if (rv != SQLITE_OK) {
- SQLErrorHandler* error_handler = GetErrorHandlerFactory()->Make();
- return error_handler->HandleError(rv, db);
+ DLOG(ERROR) << "SQLStatement.prepare_v2 failed: " << sqlite3_errmsg(db);
}
return rv;
}