fixed has many and belongs to eager loading via sql join

This commit is contained in:
2025-02-16 19:57:14 +01:00
parent ec96c15905
commit 66d5bc6c86
8 changed files with 157 additions and 84 deletions
+2 -2
View File
@@ -24,8 +24,8 @@ column::column(const sql_function_t func, std::string name)
, name(std::move(name))
, function_(func) {}
column::column(const struct sql::table& t, std::string name, std::string as)
: table_(std::make_shared<sql::table>(t))
column::column(const table& tab, std::string name, std::string as)
: table_(std::make_shared<table>(tab))
, name(std::move(name))
, alias(std::move(as)) {
table_->columns.push_back(*this);