diff options
Diffstat (limited to 'common/relationship')
-rw-r--r-- | common/relationship/driver.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/relationship/driver.cxx b/common/relationship/driver.cxx index cad17a0..abbae29 100644 --- a/common/relationship/driver.cxx +++ b/common/relationship/driver.cxx @@ -105,8 +105,9 @@ main (int argc, char* argv[]) transaction t (db->begin ()); result r (db->query<aggr> (query::o1::str == "obj1")); - assert (r.size () == 1); + assert (!r.empty ()); assert (r.begin ()->o1->id == a.o1->id); + assert (size (r) == 1); t.commit (); } |