aboutsummaryrefslogtreecommitdiff
path: root/odb/common-query.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-12-12 11:26:44 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-12-12 11:26:44 +0200
commita5f24411433aeb61ad015129354a664820affab0 (patch)
tree25fb5a97c0c070b78c9318f1da3dcbc484785918 /odb/common-query.cxx
parent2ad2e5500dd075db421a516502c9e522fdc34ee0 (diff)
Add support for SQL name transformations
Diffstat (limited to 'odb/common-query.cxx')
-rw-r--r--odb/common-query.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/odb/common-query.cxx b/odb/common-query.cxx
index 67a2674..f7c4714 100644
--- a/odb/common-query.cxx
+++ b/odb/common-query.cxx
@@ -577,14 +577,12 @@ traverse_pointer (semantics::data_member& m, semantics::class_& c)
// Simple id.
//
string type (t.fq_name (hint));
- string column (
- compose_name (
- column_prefix_, column_name (m, key_prefix_, default_name_)));
+ string col (column_name (m, key_prefix_, default_name_, column_prefix_));
// For pointer_query_columns generate normal column mapping.
//
if (ptr_)
- column_common (m, type, column);
+ column_common (m, type, col);
else
{
// If this is a non-inverse relationship, then make the column have
@@ -593,7 +591,7 @@ traverse_pointer (semantics::data_member& m, semantics::class_& c)
// test in a natural way. For inverse relationships there is no
// column and so the column interface is not available.
//
- column_common (m, type, column, "_column_type_");
+ column_common (m, type, col, "_column_type_");
if (decl_)
{