fixed postgres tests
This commit is contained in:
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user