diff options
Diffstat (limited to 'odb/relational/model.hxx')
-rw-r--r-- | odb/relational/model.hxx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/odb/relational/model.hxx b/odb/relational/model.hxx index 13c67d7..3b53c67 100644 --- a/odb/relational/model.hxx +++ b/odb/relational/model.hxx @@ -115,8 +115,7 @@ namespace relational (key_prefix_.empty () ? m.name () : key_prefix_)); sema_rel::column& c ( - model_.new_node<sema_rel::column> ( - col_id, column_type (), null (m))); + model_.new_node<sema_rel::column> (col_id, type (m), null (m))); c.set ("cxx-location", m.location ()); c.set ("member-path", member_path_); model_.new_edge<sema_rel::unames> (table_, c, name); @@ -142,6 +141,12 @@ namespace relational return true; } + virtual string + type (semantics::data_member&) + { + return object_columns_base::column_type (); + } + virtual bool null (semantics::data_member&) { |