| Index: sql/connection.cc
|
| diff --git a/sql/connection.cc b/sql/connection.cc
|
| index 25072904630353ae390d07bc63108e6da64c10c5..ab84266673330e57bb24e2496743bd9f73f3948d 100644
|
| --- a/sql/connection.cc
|
| +++ b/sql/connection.cc
|
| @@ -243,8 +243,9 @@ bool Connection::IsExpectedSqliteError(int error) {
|
| void Connection::ReportDiagnosticInfo(int extended_error, Statement* stmt) {
|
| AssertIOAllowed();
|
|
|
| - std::string debug_info;
|
| + // Trim extended error codes.
|
| const int error = (extended_error & 0xFF);
|
| + std::string debug_info;
|
| if (error == SQLITE_CORRUPT) {
|
| // CollectCorruptionInfo() is implemented in terms of sql::Connection,
|
| // prevent reentrant calls to the error callback.
|
|
|