From fc5d410dae6faacfa2998ce57e93b521b8c3ae2e Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 26 Jan 2015 12:00:01 +0200 Subject: 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. --- odb/relational/header.cxx | 3 +++ 1 file changed, 3 insertions(+) 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 << "};"; } -- cgit v1.1