diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2013-09-15 13:43:39 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2013-09-15 13:43:39 +0200 |
commit | c17f5ff5b2f1523e92e048623f51638f83b34022 (patch) | |
tree | dce2d719943a49ff8e4160b691423d6312ff94d5 /odb/relational/model.hxx | |
parent | 51956f409ec7ebea8b6790b0c5d4f0b51513d683 (diff) |
Diagnose change of polymorphic base, table kind
Diffstat (limited to 'odb/relational/model.hxx')
-rw-r--r-- | odb/relational/model.hxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/odb/relational/model.hxx b/odb/relational/model.hxx index 325e614..3ff5e06 100644 --- a/odb/relational/model.hxx +++ b/odb/relational/model.hxx @@ -766,8 +766,11 @@ namespace relational t.options (table_options (c)); - if (poly != 0 && poly != &c) - t.extra ()["kind"] = "polymorphic"; + t.extra ()["kind"] =(poly == 0 + ? "object" + : (poly == &c + ? "polymorphic root object" + : "polymorphic derived object")); // Add columns. // |