summaryrefslogtreecommitdiff
path: root/odb/semantics/relational/index.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-01-26 12:43:16 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-01-26 12:43:16 +0200
commitaf12ffe836de09ec84f666effa4df347eeb07a43 (patch)
treedc0aec9f8fee545c84be098414772cf2b277c30d /odb/semantics/relational/index.hxx
parentc1d2ec5bbd5969332f3278f39d2a7a8f0abc0493 (diff)
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.
Diffstat (limited to 'odb/semantics/relational/index.hxx')
-rw-r--r--odb/semantics/relational/index.hxx5
1 files changed, 3 insertions, 2 deletions
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 <odb/semantics/relational/elements.hxx>
+#include <odb/semantics/relational/column.hxx>
#include <odb/semantics/relational/key.hxx>
#include <odb/semantics/relational/table.hxx>
@@ -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)
{
}