summaryrefslogtreecommitdiff
path: root/odb/relational/schema.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-10-19 10:47:41 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-10-21 19:25:06 +0200
commit6bd95f51beb26d87fd5d5db22391c73f333eee6e (patch)
tree59621cec994f55fce7a1ced5c3b9edb93a41b084 /odb/relational/schema.hxx
parent7623fb5259da19c33ffe6623b0f306f6c39ede27 (diff)
Add support for const data members
Const data members are automatically treated as readonly. New test: const-member.
Diffstat (limited to 'odb/relational/schema.hxx')
-rw-r--r--odb/relational/schema.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/odb/relational/schema.hxx b/odb/relational/schema.hxx
index 29d4ff9..ecafe2c 100644
--- a/odb/relational/schema.hxx
+++ b/odb/relational/schema.hxx
@@ -363,7 +363,7 @@ namespace relational
virtual void
reference (semantics::data_member& m)
{
- if (semantics::class_* c = object_pointer (member_type (m, prefix_)))
+ if (semantics::class_* c = object_pointer (member_utype (m, prefix_)))
{
os << " REFERENCES " << table_qname (*c) << " (" <<
column_qname (*id_member (*c)) << ")";