This commit is contained in:
parent
d6efc19ba8
commit
13a55bff61
@ -212,13 +212,14 @@ public:
|
||||
static_cast<const char *>(__FUNCTION__);
|
||||
|
||||
row.reset();
|
||||
if (has_row()) {
|
||||
if (not has_row()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
row = db_row{context_};
|
||||
set_res(sqlite3_step(context_->stmt.get()), function_name);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
[[nodiscard]] auto has_row() const -> bool { return res_ == SQLITE_ROW; }
|
||||
|
||||
@ -232,4 +233,5 @@ public:
|
||||
}
|
||||
};
|
||||
} // namespace repertory::db
|
||||
|
||||
#endif // INCLUDE_DATABASE_DB_COMMON_HPP_
|
||||
|
Loading…
x
Reference in New Issue
Block a user