diff options
Diffstat (limited to 'sql/statement.cc')
-rw-r--r-- | sql/statement.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/statement.cc b/sql/statement.cc index fe0accb..5736d7d 100644 --- a/sql/statement.cc +++ b/sql/statement.cc @@ -308,7 +308,7 @@ bool Statement::CheckOk(int err) const { int Statement::CheckError(int err) { // Please don't add DCHECKs here, OnSqliteError() already has them. succeeded_ = (err == SQLITE_OK || err == SQLITE_ROW || err == SQLITE_DONE); - if (!succeeded_ && ref_ && ref_->connection()) + if (!succeeded_ && ref_.get() && ref_->connection()) return ref_->connection()->OnSqliteError(err, this); return err; } |