diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-01-26 12:43:16 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-01-26 12:43:16 +0200 |
commit | af12ffe836de09ec84f666effa4df347eeb07a43 (patch) | |
tree | dc0aec9f8fee545c84be098414772cf2b277c30d /odb/semantics/relational/foreign-key.hxx | |
parent | c1d2ec5bbd5969332f3278f39d2a7a8f0abc0493 (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/foreign-key.hxx')
-rw-r--r-- | odb/semantics/relational/foreign-key.hxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/odb/semantics/relational/foreign-key.hxx b/odb/semantics/relational/foreign-key.hxx index 4a0b543..c47c90a 100644 --- a/odb/semantics/relational/foreign-key.hxx +++ b/odb/semantics/relational/foreign-key.hxx @@ -13,7 +13,7 @@ namespace semantics { namespace relational { - class foreign_key: public key + class foreign_key: public unameable, public key { public: enum action @@ -23,10 +23,10 @@ namespace semantics }; foreign_key (string const& id, - string const& referenced_table, + qname const& referenced_table, bool deferred, action on_delete = no_action) - : key (id), + : unameable (id), referenced_table_ (referenced_table), deferred_ (deferred), on_delete_ (on_delete) @@ -34,7 +34,7 @@ namespace semantics } public: - string + qname const& referenced_table () const { return referenced_table_; @@ -76,7 +76,7 @@ namespace semantics } private: - string referenced_table_; + qname referenced_table_; columns referenced_columns_; bool deferred_; action on_delete_; |