From a5f24411433aeb61ad015129354a664820affab0 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 12 Dec 2012 11:26:44 +0200 Subject: Add support for SQL name transformations --- odb/common-query.cxx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'odb/common-query.cxx') 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_) { -- cgit v1.1