From e61fb61f6406db4d1b3b33eb72007ba22efb44bd Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 28 Mar 2011 09:54:19 +0200 Subject: Recode tests to work with implementations lacking result::size() --- common/query/driver.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'common/query/driver.cxx') diff --git a/common/query/driver.cxx b/common/query/driver.cxx index 9d948cc..2f97f2e 100644 --- a/common/query/driver.cxx +++ b/common/query/driver.cxx @@ -392,10 +392,10 @@ main (int argc, char* argv[]) transaction t (db->begin ()); result r (db->query (query::last_name == "Doe")); - assert (r.size () == 2); - result::iterator i (r.begin ()); - i++; + assert (i != r.end ()); + ++i; + assert (i != r.end ()); auto_ptr joe (db->load (3)); assert (i->last_name_ == "Doe"); -- cgit v1.1