Add debug.

GitOrigin-RevId: 68545a71066ca1f6b2a87e2da0f3632655a7f006
This commit is contained in:
levlam 2018-10-25 01:37:43 +03:00
parent 1e1bc31d9e
commit 8e11f8ff1b

View File

@ -221,6 +221,7 @@ Result<SqliteStatement> SqliteDb::get_statement(CSlice statement) {
if (rc != SQLITE_OK) {
return Status::Error(PSLICE() << "Failed to prepare sqlite " << tag("stmt", statement) << raw_->last_error());
}
CHECK(stmt != nullptr) << statement;
return SqliteStatement(stmt, raw_);
}