diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-04-25 15:02:43 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-04-25 15:02:43 +0200 |
commit | 1a6a0652a6ef5b319cfc8ad05a0acee6910f7560 (patch) | |
tree | 40605db91ed90c342a9074308bd7406008b4f10b /odb/relational/schema.hxx | |
parent | 9c5b2f928699a6752d7c3d1a062bac7efc247c64 (diff) |
Add support for abstract object types
Diffstat (limited to 'odb/relational/schema.hxx')
-rw-r--r-- | odb/relational/schema.hxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/odb/relational/schema.hxx b/odb/relational/schema.hxx index 6c481da..9e04b77 100644 --- a/odb/relational/schema.hxx +++ b/odb/relational/schema.hxx @@ -136,7 +136,7 @@ namespace relational if (c.file () != unit.file ()) return; - if (!c.count ("object")) + if (!c.count ("object") || abstract (c)) return; string const& name (table_name (c)); @@ -192,7 +192,7 @@ namespace relational if (semantics::class_* c = object_pointer (member_type (m, prefix_))) { os << " REFERENCES " << quote_id (table_name (*c)) << " (" << - quote_id (column_name (id_member (*c))) << ")"; + quote_id (column_name (*id_member (*c))) << ")"; } return true; @@ -369,7 +369,7 @@ namespace relational if (c.file () != unit.file ()) return; - if (!c.count ("object")) + if (!c.count ("object") || abstract (c)) return; string const& name (table_name (c)); |