summaryrefslogtreecommitdiff
path: root/odb/relational/mysql/common.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-08-28 11:39:17 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-08-28 14:15:45 +0200
commit475a7c89e1c858ae8fec466670af4628129a42d4 (patch)
tree371d7084250767ae927e685fb7a5da630626280f /odb/relational/mysql/common.hxx
parent64d0ceffaaf5f57a3d24a5210bf0ad2a8474a618 (diff)
Add wrapper support for containers
Diffstat (limited to 'odb/relational/mysql/common.hxx')
-rw-r--r--odb/relational/mysql/common.hxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/odb/relational/mysql/common.hxx b/odb/relational/mysql/common.hxx
index 69ee515..a85a75e 100644
--- a/odb/relational/mysql/common.hxx
+++ b/odb/relational/mysql/common.hxx
@@ -40,10 +40,13 @@ namespace relational
string
fq_type (bool unwrap = true) const
{
- // At the moment a wrapped type can only be a composite value.
- //
if (wrapper != 0 && unwrap)
- return t.fq_name ();
+ {
+ // Use the hint from the wrapper.
+ //
+ return t.fq_name (
+ wrapper->get<semantics::names*> ("wrapper-hint"));
+ }
// Use the original type from 'm' instead of 't' since the hint
// may be invalid for a different type. Plus, if a type is