fixed compilation
This commit is contained in:
@@ -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());
|
||||
|
||||
@@ -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_;
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user