From 475a7c89e1c858ae8fec466670af4628129a42d4 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 28 Aug 2011 11:39:17 +0200 Subject: Add wrapper support for containers --- odb/relational/pgsql/common.hxx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'odb/relational/pgsql/common.hxx') diff --git a/odb/relational/pgsql/common.hxx b/odb/relational/pgsql/common.hxx index f41ca8c..a91c40a 100644 --- a/odb/relational/pgsql/common.hxx +++ b/odb/relational/pgsql/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 ("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 -- cgit v1.1