aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-07-18 17:20:00 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-07-18 17:20:00 +0200
commit533539cd0a445bb38ac574024361552188efa8e6 (patch)
tree673499bb2ab6d24cbbdf43f0cb47ad5bbe3972e7
parent5e7e5db01384b45cb751cfd5f0e3f23c1cdc7022 (diff)
Qualify id with table alias to help SQLite out
This hack should go away once we have language-integrated support for ORDER BY.
-rw-r--r--common/callback/driver.cxx2
1 files changed, 1 insertions, 1 deletions
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<object> result;
transaction t (db->begin ());
- result r (db->query<object> ((query::id < 3) + "ORDER BY id"));
+ result r (db->query<object> ((query::id < 3) + "ORDER BY _.id"));
for (result::iterator i (r.begin ()); i != r.end (); ++i)
{