aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-09-09 10:51:36 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-09-09 10:51:36 +0200
commit30fad82ff3afc8315dcea7988525fd057d07d9ca (patch)
tree43f662c60c4a3e0d3aab5b994b5f69331bec5e46
parent2ef121a6df140969f3f722981e4fd74360345e44 (diff)
Vary members order to improve coverage
In particular, the test now catches a bug in PG type oid generation.
-rw-r--r--common/inverse/test.hxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/common/inverse/test.hxx b/common/inverse/test.hxx
index ad7b108..12eddfb 100644
--- a/common/inverse/test.hxx
+++ b/common/inverse/test.hxx
@@ -60,26 +60,26 @@ struct obj2
#pragma db id auto
int id;
- std::string str;
-
// one-to-one
//
#pragma db inverse(o2)
obj1_ptr o1;
+
+ std::string str;
};
#pragma db object
struct obj3
{
- #pragma db id auto
- int id;
-
std::string str;
// one(i)-to-many
//
#pragma db inverse (o3)
obj1_ptr o1;
+
+ #pragma db id auto
+ int id;
};
#pragma db object