From af12ffe836de09ec84f666effa4df347eeb07a43 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 26 Jan 2012 12:43:16 +0200 Subject: Implement support for database schema New pragma qualifier: namespace. New pragma specifier: schema. The table specifier was extended to accept a schema prefix. New option: --default- schema. The common/schema test was extended to cover the new functionality. --- odb/relational/common.cxx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'odb/relational/common.cxx') diff --git a/odb/relational/common.cxx b/odb/relational/common.cxx index 1ee8449..0c1ecc8 100644 --- a/odb/relational/common.cxx +++ b/odb/relational/common.cxx @@ -112,11 +112,11 @@ namespace relational } else { - // For now use column name as table alias. This will become problematic - // when we add support for composite ids. + // For now use column name as table alias. + // @@ This will become problematic when we add support for composite ids. // os << "const char " << scope_ << "::" << name << "_alias_[] = " << - strlit (column) << ";" + strlit (quote_id (column)) << ";" << endl; if (inv) @@ -299,7 +299,8 @@ namespace relational { os << "template " << endl << "const typename " << scope_ << "::" << name << "_type_" << endl - << scope_ << "::" << name << " (" << "table, " << strlit (column); + << scope_ << "::" << name << " (" << "table, " << + strlit (quote_id (column)); column_ctor_extra (m); -- cgit v1.1