renamed basic_types enumerations
This commit is contained in:
@@ -156,7 +156,7 @@ utils::result<size_t, utils::error> connection::execute(const std::string &sql)
|
||||
|
||||
bool has_unknown_columns(const std::vector<object::attribute> &columns) {
|
||||
return std::any_of(std::begin(columns), std::end(columns), [](const auto &col) {
|
||||
return col.type() == utils::basic_type::type_null;
|
||||
return col.type() == utils::basic_type::Null;
|
||||
});
|
||||
}
|
||||
|
||||
@@ -228,7 +228,7 @@ utils::result<std::unique_ptr<statement_impl>, utils::error> connection::perform
|
||||
std::end(*result),
|
||||
[&col](const auto &value) { return value.name() == col.name(); }
|
||||
);
|
||||
if (col.type() == utils::basic_type::type_null && rit != result->end()) {
|
||||
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