diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-01-26 12:00:01 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-01-26 12:00:01 +0200 |
commit | fc5d410dae6faacfa2998ce57e93b521b8c3ae2e (patch) | |
tree | 0b77bc7864f0441effd0e731fa459cb4a288ecfc | |
parent | 099385af3eed20549ced40b3e76644ad57fe31d5 (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.
-rw-r--r-- | odb/relational/header.cxx | 3 |
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 << "};"; } |