compile fixes in session
This commit is contained in:
parent
cf977a32aa
commit
c1620d620e
|
|
@ -328,7 +328,7 @@ utils::result<object::object_ptr<Type>, utils::error> session::find(const Primar
|
||||||
"Failed to build query for type " + info.name() + "."));
|
"Failed to build query for type " + info.name() + "."));
|
||||||
}
|
}
|
||||||
|
|
||||||
auto res = build_select_query(data.release()).prepare(*this);
|
auto res = data->prepare(*this);
|
||||||
|
|
||||||
if (!res) {
|
if (!res) {
|
||||||
return utils::failure(res.err());
|
return utils::failure(res.err());
|
||||||
|
|
@ -357,7 +357,7 @@ utils::result<sql::query_result<Type>, utils::error> session::find(query::criter
|
||||||
"Failed to build query for type " + it->second.name() + "."));
|
"Failed to build query for type " + it->second.name() + "."));
|
||||||
}
|
}
|
||||||
|
|
||||||
auto result = build_select_query(data.release()).prepare(*this);
|
auto result = data->prepare(*this);
|
||||||
if (!result.is_ok()) {
|
if (!result.is_ok()) {
|
||||||
return utils::failure(result.err());
|
return utils::failure(result.err());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue