From 4cb83ca74184b364b3d03df3d13b175c965f3559 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 19 Aug 2011 14:08:16 +0200 Subject: 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. --- 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 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 result; transaction t (db->begin ()); - result r (db->query ((query::id < 3) + "ORDER BY _.id")); + result r (db->query ((query::id < 3) + "ORDER BY object.id")); for (result::iterator i (r.begin ()); i != r.end (); ++i) { -- cgit v1.1