collection resolver progress
This commit is contained in:
@@ -244,7 +244,12 @@ utils::result<std::unique_ptr<statement_impl>, utils::error> connection::perform
|
||||
const auto rit = std::find_if(
|
||||
std::begin(*result),
|
||||
std::end(*result),
|
||||
[&col](const auto &value) { return value.name() == col.name(); }
|
||||
[&col, &ctx](const auto &value) {
|
||||
if (ctx.table_name.empty()) {
|
||||
return value.name() == col.name();
|
||||
}
|
||||
return value.name() == col.name() || ctx.table_name + "." + value.name() == col.name();
|
||||
}
|
||||
);
|
||||
if (col.type() == utils::basic_type::Null && rit != result->end()) {
|
||||
const_cast<object::attribute&>(col).change_type(rit->type());
|
||||
|
||||
Reference in New Issue
Block a user