aboutsummaryrefslogtreecommitdiff
path: root/odb/relational/pgsql/source.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-08-31 14:19:56 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-08-31 14:19:56 +0200
commita7ec19749a76cc262240124f5c71c1ee4051cba7 (patch)
treeb88fcfe27f1128d439e1e7c1ef470130737cacd4 /odb/relational/pgsql/source.cxx
parent47d57dc9af5db83e5b508282b844064caf9b7968 (diff)
Rename comp_value() predicate to composite()
Diffstat (limited to 'odb/relational/pgsql/source.cxx')
-rw-r--r--odb/relational/pgsql/source.cxx20
1 files changed, 10 insertions, 10 deletions
diff --git a/odb/relational/pgsql/source.cxx b/odb/relational/pgsql/source.cxx
index 5050315..b869520 100644
--- a/odb/relational/pgsql/source.cxx
+++ b/odb/relational/pgsql/source.cxx
@@ -161,7 +161,7 @@ namespace relational
{
if (var_override_.empty ())
{
- if (semantics::class_* c = comp_value (mi.t))
+ if (semantics::class_* c = composite (mi.t))
os << "n += " << in_column_count (*c) << "UL;";
else
os << "n++;";
@@ -299,7 +299,7 @@ namespace relational
virtual void
post (member_info& mi)
{
- if (semantics::class_* c = comp_value (mi.t))
+ if (semantics::class_* c = composite (mi.t))
index_ += in_column_count (*c);
else
index_++;
@@ -426,7 +426,7 @@ namespace relational
// "unwrap" it. For simple values this is taken care of
// by the value_traits specializations.
//
- if (mi.wrapper != 0 && comp_value (mi.t))
+ if (mi.wrapper != 0 && composite (mi.t))
{
// Here we need the wrapper type, not the wrapped type.
//
@@ -434,7 +434,7 @@ namespace relational
"get_ref (" + member + ")";
}
- if (comp_value (mi.t))
+ if (composite (mi.t))
traits = "composite_value_traits< " + mi.fq_type () + " >";
else
{
@@ -507,7 +507,7 @@ namespace relational
virtual void
post (member_info& mi)
{
- if (!comp_value (mi.t))
+ if (!composite (mi.t))
{
// When handling a pointer, mi.t is the id type of the referenced
// object.
@@ -669,7 +669,7 @@ namespace relational
// "unwrap" it. For simple values this is taken care of
// by the value_traits specializations.
//
- if (mi.wrapper != 0 && comp_value (mi.t))
+ if (mi.wrapper != 0 && composite (mi.t))
{
// Here we need the wrapper type, not the wrapped type.
//
@@ -677,7 +677,7 @@ namespace relational
"set_ref (" + member + ")";
}
- if (comp_value (mi.t))
+ if (composite (mi.t))
traits = "composite_value_traits< " + mi.fq_type () + " >";
else
{
@@ -729,7 +729,7 @@ namespace relational
virtual void
post (member_info& mi)
{
- if (comp_value (mi.t))
+ if (composite (mi.t))
return;
// When handling a pointer, mi.t is the id type of the referenced
@@ -1094,7 +1094,7 @@ namespace relational
case ck_multimap:
{
if (semantics::class_* ktc =
- comp_value_wrapper (container_kt (t)))
+ composite_wrapper (container_kt (t)))
{
instance<statement_oids> st;
st->traverse (m, *ktc, "key", "key");
@@ -1112,7 +1112,7 @@ namespace relational
}
}
- if (semantics::class_* vtc = comp_value_wrapper (vt))
+ if (semantics::class_* vtc = composite_wrapper (vt))
{
instance <statement_oids> st;
st->traverse (m, *vtc, "value", "value");