diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-11-09 20:19:17 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-11-09 20:19:17 +0200 |
commit | 9072761e0c9486cc3d1265a1c1e2b39db8e68bf7 (patch) | |
tree | 1e284d8088e51a962bd285b02f8096ed088463ee /odb/relational/pgsql/source.cxx | |
parent | dfba83f1ef3b5856d36dc29da0b6e02f51bc36b3 (diff) |
Make sure we can use same type as both container and simple value
Diffstat (limited to 'odb/relational/pgsql/source.cxx')
-rw-r--r-- | odb/relational/pgsql/source.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/odb/relational/pgsql/source.cxx b/odb/relational/pgsql/source.cxx index 0ff0bf1..7200405 100644 --- a/odb/relational/pgsql/source.cxx +++ b/odb/relational/pgsql/source.cxx @@ -154,7 +154,7 @@ namespace relational virtual bool pre (member_info& mi) { - if (container (mi.t)) + if (container (mi)) return false; ostringstream ostr; @@ -364,7 +364,7 @@ namespace relational virtual bool pre (member_info& mi) { - if (container (mi.t)) + if (container (mi)) return false; ostringstream ostr; @@ -490,7 +490,7 @@ namespace relational // Ignore containers (they get their own table) and inverse // object pointers (they are not present in this binding). // - if (container (mi.t) || inverse (mi.m, key_prefix_)) + if (container (mi) || inverse (mi.m, key_prefix_)) return false; if (!member_override_.empty ()) @@ -756,7 +756,7 @@ namespace relational virtual bool pre (member_info& mi) { - if (container (mi.t)) + if (container (mi)) return false; if (!member_override_.empty ()) @@ -1268,7 +1268,7 @@ namespace relational { // many(i)-to-many // - if (container_wrapper (utype (*inv_m))) + if (container (*inv_m)) os << oids[column_sql_type (*inv_m, "value").type]; // many(i)-to-one |