| Index: sql/connection.cc
|
| diff --git a/sql/connection.cc b/sql/connection.cc
|
| index bfe8bb7447f23bf24d9d4266ee73f3670c0d53db..d94b4d8d6197a1918671dc95b77ca24c8f170f11 100644
|
| --- a/sql/connection.cc
|
| +++ b/sql/connection.cc
|
| @@ -725,8 +725,8 @@ scoped_refptr<Connection::StatementRef> Connection::GetUniqueStatement(
|
| int rc = sqlite3_prepare_v2(db_, sql, -1, &stmt, NULL);
|
| if (rc != SQLITE_OK) {
|
| // This is evidence of a syntax error in the incoming SQL.
|
| - DLOG_IF(FATAL, !ShouldIgnoreSqliteError(rc))
|
| - << "SQL compile error " << GetErrorMessage();
|
| + if (!ShouldIgnoreSqliteError(rc))
|
| + DLOG(FATAL) << "SQL compile error " << GetErrorMessage();
|
|
|
| // It could also be database corruption.
|
| OnSqliteError(rc, NULL, sql);
|
| @@ -745,8 +745,8 @@ scoped_refptr<Connection::StatementRef> Connection::GetUntrackedStatement(
|
| int rc = sqlite3_prepare_v2(db_, sql, -1, &stmt, NULL);
|
| if (rc != SQLITE_OK) {
|
| // This is evidence of a syntax error in the incoming SQL.
|
| - DLOG_IF(FATAL, !ShouldIgnoreSqliteError(rc))
|
| - << "SQL compile error " << GetErrorMessage();
|
| + if (!ShouldIgnoreSqliteError(rc))
|
| + DLOG(FATAL) << "SQL compile error " << GetErrorMessage();
|
| return new StatementRef(NULL, NULL, false);
|
| }
|
| return new StatementRef(NULL, stmt, true);
|
|
|