diff options
Diffstat (limited to 'odb/relational/schema.hxx')
-rw-r--r-- | odb/relational/schema.hxx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/odb/relational/schema.hxx b/odb/relational/schema.hxx index 9e04b77..9d0c0d1 100644 --- a/odb/relational/schema.hxx +++ b/odb/relational/schema.hxx @@ -185,8 +185,9 @@ namespace relational if (!first) os << "," << endl; - os << " " << quote_id (name) << " " << column_type (m, prefix_); + os << " " << quote_id (name); + type (m); constraints (m); if (semantics::class_* c = object_pointer (member_type (m, prefix_))) @@ -199,6 +200,12 @@ namespace relational } virtual void + type (semantics::data_member& m) + { + os << " " << column_type (m, prefix_); + } + + virtual void constraints (semantics::data_member& m) { if (m.count ("id")) |