diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-12-09 10:36:15 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-12-09 10:36:15 +0200 |
commit | 5adda85ed10d9196f4d68cc4b8fee12f6ba9cfec (patch) | |
tree | 8a97d998dd8de5a4c2dbda8a171fabbf54af6c4e /odb/mysql/schema.cxx | |
parent | 5789a4f7c5cee94df29e37fd1c2f7c1d9e883002 (diff) |
Add lazy pointer support
Built-in support is provided for raw, auto, and tr1 shared/weak pointers.
New test: common/lazy-ptr.
Diffstat (limited to 'odb/mysql/schema.cxx')
-rw-r--r-- | odb/mysql/schema.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/odb/mysql/schema.cxx b/odb/mysql/schema.cxx index e02dde6..f99cf40 100644 --- a/odb/mysql/schema.cxx +++ b/odb/mysql/schema.cxx @@ -40,7 +40,7 @@ namespace mysql os << " PRIMARY KEY"; using semantics::class_; - if (class_* c = object_pointer (m, prefix_)) + if (class_* c = object_pointer (member_type (m, prefix_))) { os << " REFERENCES `" << table_name (*c) << "` (`" << column_name (id_member (*c)) << "`)"; |