compilation fixes
This commit is contained in:
@@ -246,7 +246,7 @@ utils::result<object::object_ptr<Type>, utils::error> session::update( const obj
|
||||
using namespace matador::utils;
|
||||
using namespace matador::query;
|
||||
|
||||
const auto col = sql::column(info.value().get().definition().primary_key()->name());
|
||||
const auto col = column(info.value().get().definition().primary_key()->name());
|
||||
auto res = matador::query::query::update(info->get().name())
|
||||
.set(generator::column_value_pairs<Type>())
|
||||
.where(col == _)
|
||||
@@ -272,7 +272,7 @@ utils::result<void, utils::error> session::remove( const object::object_ptr<Type
|
||||
using namespace matador::utils;
|
||||
using namespace matador::query;
|
||||
|
||||
const auto col = sql::column(info.value().get().definition().primary_key()->name());
|
||||
const auto col = column(info.value().get().definition().primary_key()->name());
|
||||
auto res = matador::query::query::remove()
|
||||
.from( info->get().name() )
|
||||
.where(col == _)
|
||||
@@ -301,7 +301,7 @@ utils::result<object::object_ptr<Type>, utils::error> session::find(const Primar
|
||||
const auto& type_info = info.value().get();
|
||||
|
||||
session_query_builder eqb(*schema_, *this);
|
||||
const sql::column col(sql::table{type_info.reference_column()->table_name()}, type_info.reference_column()->name());
|
||||
const query::column col(query::table{type_info.reference_column()->table_name()}, type_info.reference_column()->name());
|
||||
using namespace matador::query;
|
||||
auto data = eqb.build<Type>(col == utils::_);
|
||||
if (!data.is_ok()) {
|
||||
|
||||
Reference in New Issue
Block a user