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/semantics/relational/index.hxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'odb/semantics/relational/index.hxx') diff --git a/odb/semantics/relational/index.hxx b/odb/semantics/relational/index.hxx index ee6b202..bb34742 100644 --- a/odb/semantics/relational/index.hxx +++ b/odb/semantics/relational/index.hxx @@ -7,6 +7,7 @@ #define ODB_SEMANTICS_RELATIONAL_INDEX_HXX #include +#include #include #include @@ -17,7 +18,7 @@ namespace semantics // Note that unlike other keys, indexes are defined in the model // scope, not table scope. // - class index: public key + class index: public qnameable, public key { public: relational::table& @@ -28,7 +29,7 @@ namespace semantics public: index (string const& id) - : key (id) + : qnameable (id) { } -- cgit v1.1