From a26f4251e67ccaaaa848982946c8867443092ebe 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. --- odb/relational/mysql/source.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'odb/relational/mysql/source.cxx') diff --git a/odb/relational/mysql/source.cxx b/odb/relational/mysql/source.cxx index e40a40a..451a44d 100644 --- a/odb/relational/mysql/source.cxx +++ b/odb/relational/mysql/source.cxx @@ -122,7 +122,7 @@ namespace relational if (!table.empty ()) { - line_ += table == table_name_ ? "_" : table; + line_ += table; line_ += '.'; } @@ -131,7 +131,7 @@ namespace relational if (!table.empty ()) { - line_ += table == table_name_ ? "_" : table; + line_ += table; line_ += '.'; } -- cgit v1.1