fixed postgres tests

This commit is contained in:
2025-02-15 12:36:21 +01:00
parent 6e64ba99de
commit ec96c15905
16 changed files with 89 additions and 58 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ struct author {
field::attribute(op, "date_of_birth", date_of_birth, 31);
field::attribute(op, "year_of_birth", year_of_birth);
field::attribute(op, "distinguished", distinguished);
field::has_many(op, "books", books, "author_id", utils::fetch_type::EAGER);
field::has_many(op, "books", books, "author_id", utils::fetch_type::LAZY);
}
};
+1 -1
View File
@@ -13,7 +13,7 @@ struct person {
unsigned int id{};
std::string name;
unsigned int age{};
utils::blob image;
utils::blob image{};
template<class Operator>
void process(Operator &op) {
+2 -2
View File
@@ -16,7 +16,7 @@ struct ingredient
{
unsigned int id{};
std::string name;
std::vector<object::object_ptr<recipe>> recipes;
std::vector<object::object_ptr<recipe>> recipes{};
template<class Operator>
void process(Operator &op) {
@@ -31,7 +31,7 @@ struct recipe
{
unsigned int id{};
std::string name;
std::vector<object::object_ptr<ingredient>> ingredients;
std::vector<object::object_ptr<ingredient>> ingredients{};
template<class Operator>
void process(Operator &op) {