fixed compilation and tests

This commit is contained in:
2025-11-23 11:02:17 +01:00
parent 78abf16f28
commit 19b0adf737
8 changed files with 74 additions and 62 deletions
@@ -137,7 +137,7 @@ void attribute_generator::on_primary_key(const char *id, ValueType &x, const uti
}
template<typename Type>
void attribute_generator::on_attribute(const char *id, Type &x, const utils::field_attributes &attr) {
void attribute_generator::on_attribute(const char *id, Type &/*x*/, const utils::field_attributes &attr) {
columns_.emplace_back(id, utils::data_type_traits<Type>::type(attr.size()), attr, null_option_type::NOT_NULL);
}
+1 -1
View File
@@ -18,7 +18,7 @@ public:
template < typename Type >
static std::shared_ptr<repository_node> make_node(repository& repo, const std::string& name) {
auto node = std::make_shared<repository_node>( repo, name, typeid( Type ) );
auto node = std::shared_ptr<repository_node>(new repository_node(repo, name, typeid(Type)));
primary_key_resolver resolver;
auto pk_info = resolver.resolve<Type>();