From 533539cd0a445bb38ac574024361552188efa8e6 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 18 Jul 2011 17:20:00 +0200 Subject: Qualify id with table alias to help SQLite out This hack should go away once we have language-integrated support for ORDER BY. --- common/callback/driver.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/callback') diff --git a/common/callback/driver.cxx b/common/callback/driver.cxx index 3dfbc79..4179168 100644 --- a/common/callback/driver.cxx +++ b/common/callback/driver.cxx @@ -85,7 +85,7 @@ main (int argc, char* argv[]) typedef odb::result result; transaction t (db->begin ()); - result r (db->query ((query::id < 3) + "ORDER BY id")); + result r (db->query ((query::id < 3) + "ORDER BY _.id")); for (result::iterator i (r.begin ()); i != r.end (); ++i) { -- cgit v1.1