fixed compilation

This commit is contained in:
Sascha Kühl
2025-12-16 16:21:09 +01:00
parent 4a19322ef8
commit 9eec5b64fb
10 changed files with 98 additions and 88 deletions
@@ -281,7 +281,7 @@ void session_query_builder::on_foreign_object(const char *id, Pointer &, const u
// create select query
auto result = matador::query::query::select(generator::columns<typename Pointer::value_type>(schema_, generator::column_generator_options::ForceLazy))
.from(*foreign_table)
.where(column(foreign_table, info->get().primary_key_attribute()->name(), "") == _)
.where(column(foreign_table.get(), info->get().primary_key_attribute()->name(), "") == _)
.prepare(executor_);
if (!result) {
throw query_builder_exception(query_build_error::QueryError, result.release_error());
+3
View File
@@ -41,6 +41,9 @@ public:
// ReSharper disable once CppNonExplicitConversionOperator
operator const std::string&() const; // NOLINT(*-explicit-constructor)
private:
static query::table* default_table();
private:
const query::table* table_{nullptr};
std::string name_;
+1 -1
View File
@@ -10,7 +10,7 @@
namespace matador::query {
struct join_data {
table* join_table{nullptr};
const table* join_table{nullptr};
std::unique_ptr<abstract_criteria> condition;
};