aboutsummaryrefslogtreecommitdiff
path: root/common/relationship
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-03-28 09:54:19 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-03-28 09:54:19 +0200
commite61fb61f6406db4d1b3b33eb72007ba22efb44bd (patch)
tree0dff61043ebda523eff7451b8f210d395ef4b9f0 /common/relationship
parent3de8e4843bc85f9fc6e63c1a4fea6b57ff0351b6 (diff)
Recode tests to work with implementations lacking result::size()
Diffstat (limited to 'common/relationship')
-rw-r--r--common/relationship/driver.cxx3
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 ();
}