From 30fad82ff3afc8315dcea7988525fd057d07d9ca Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 9 Sep 2011 10:51:36 +0200 Subject: Vary members order to improve coverage In particular, the test now catches a bug in PG type oid generation. --- common/inverse/test.hxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'common/inverse') 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 -- cgit v1.1