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