Skip to content
Snippets Groups Projects

FIX: Transaction::GetResultSet() now always returns a good reference

Merged Daniel Hornung requested to merge fix-11 into dev
2 files
+ 6
0
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -365,6 +365,10 @@ public:
[[nodiscard]] inline auto GetStatus() const noexcept -> TransactionStatus { return this->status; }
[[nodiscard]] inline auto GetResultSet() const noexcept -> const ResultSet & {
if (!this->result_set) {
this->result_set = std::make_unique<MultiResultSet>(
std::move(std::vector<std::unique_ptr<Entity>>()));
}
return *(this->result_set.get());
}
Loading