summaryrefslogtreecommitdiff
path: root/odb/relational/mysql/source.cxx
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
commita26f4251e67ccaaaa848982946c8867443092ebe (patch)
treee45089b04feebc45e0cb9b0f6f07cfa941702c78 /odb/relational/mysql/source.cxx
parent40d61256a8455ab4a89617a93d3b548457fe37c0 (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 'odb/relational/mysql/source.cxx')
-rw-r--r--odb/relational/mysql/source.cxx4
1 files changed, 2 insertions, 2 deletions
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_ += '.';
}