aboutsummaryrefslogtreecommitdiff
path: root/common/callback
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-08-19 14:08:16 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-08-19 14:08:16 +0200
commit4cb83ca74184b364b3d03df3d13b175c965f3559 (patch)
treea0cbfa94fb5b169d16f92a2d329802f0c38b6a87 /common/callback
parent458296a902060900487f80219a8762142bb7800e (diff)
Rework query machinery not to use '_' as primary table alias
Now we always qualify with the actual table name and use the '_' alias for situations where an object is referencing itself.
Diffstat (limited to 'common/callback')
-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 fc67aac..afd6fb3 100644
--- a/common/callback/driver.cxx
+++ b/common/callback/driver.cxx
@@ -93,7 +93,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 object.id"));
for (result::iterator i (r.begin ()); i != r.end (); ++i)
{