Skip to content
Snippets Groups Projects
Commit 07908438 authored by Thomas Blum's avatar Thomas Blum
Browse files

Fix bug no branches for new table

parent d7370cd8
No related branches found
No related tags found
No related merge requests found
Pipeline #39188 canceled
......@@ -323,6 +323,9 @@ Database::Database() :
Table & Database::createTable(const std::string & name) {
auto [it, ok] = _tables.emplace(name, std::make_unique<Table>(*this));
assert(ok);
for (int i=0; i<_branches.size(); i++) {
it->second->createBranch(invalid_branch_id);
}
return *it->second;
}
......
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