Skip to content
Snippets Groups Projects
Commit f4f914dd authored by Daniel Hornung's avatar Daniel Hornung
Browse files

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

parent 7c25e6d4
No related branches found
No related tags found
1 merge request!18FIX: Transaction::GetResultSet() now always returns a good reference
Pipeline #12549 passed with warnings
Pipeline: caosdb-cppinttest

#12550

    ......@@ -20,4 +20,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
    ### Fixed
    * #11 - Transaction::GetResultSet() now always returns a valid reference.
    ### Security
    ......@@ -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());
    }
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment