aboutsummaryrefslogtreecommitdiff
path: root/odb
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-01-26 12:00:01 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-01-26 12:00:01 +0200
commitfc5d410dae6faacfa2998ce57e93b521b8c3ae2e (patch)
tree0b77bc7864f0441effd0e731fa459cb4a288ecfc /odb
parent099385af3eed20549ced40b3e76644ad57fe31d5 (diff)
Add column count to composite value traits
This will hopefully be enough to implement SQL Server TVP (Table-Valued Parameters) in runtime only, when we get to it.
Diffstat (limited to 'odb')
-rw-r--r--odb/relational/header.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/odb/relational/header.cxx b/odb/relational/header.cxx
index e8cba05..f16e149 100644
--- a/odb/relational/header.cxx
+++ b/odb/relational/header.cxx
@@ -1077,6 +1077,9 @@ traverse_composite (type& c)
<< endl;
}
+ column_count_type const& cc (column_count (c));
+ os << "static const std::size_t column_count = " << cc.total << "UL;";
+
os << "};";
}