diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-07-11 12:11:17 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-07-11 12:11:17 +0200 |
commit | 05030f085ba2cc2f3df951ee454619bc236891a0 (patch) | |
tree | 9085087c0375cf6f52f408e26c30e5e024c7aeb6 | |
parent | 53ff76c42ef5655445eaff8684dbb4b0bd83488e (diff) |
Order results by id to get consistent test output order
-rw-r--r-- | common/callback/driver.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/callback/driver.cxx b/common/callback/driver.cxx index 9ffad22..3dfbc79 100644 --- a/common/callback/driver.cxx +++ b/common/callback/driver.cxx @@ -85,7 +85,7 @@ main (int argc, char* argv[]) typedef odb::result<object> result; transaction t (db->begin ()); - result r (db->query<object> (query::id < 3)); + result r (db->query<object> ((query::id < 3) + "ORDER BY id")); for (result::iterator i (r.begin ()); i != r.end (); ++i) { |