From 3ef3faa0f475a8ab72cd8f4fa657f87c9d03d888 Mon Sep 17 00:00:00 2001 From: Roland Bock Date: Wed, 18 Dec 2013 08:19:50 +0100 Subject: [PATCH] Fixed bug in dynamic result row. --- include/sqlpp11/result_row.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/sqlpp11/result_row.h b/include/sqlpp11/result_row.h index 930ce2ce..20ead6fe 100644 --- a/include/sqlpp11/result_row.h +++ b/include/sqlpp11/result_row.h @@ -166,7 +166,8 @@ namespace sqlpp dynamic_result_row_t(const raw_result_row_t& raw_result_row, std::vector dynamic_columns): _impl(raw_result_row), _raw_result_row(raw_result_row), - _is_row(raw_result_row.data != nullptr) + _is_row(raw_result_row.data != nullptr), + _dynamic_columns(dynamic_columns) { raw_result_row_t dynamic_row = raw_result_row; if (_is_row) @@ -197,7 +198,7 @@ namespace sqlpp dynamic_result_row_t& operator=(const raw_result_row_t& raw_result_row) { - detail::result_row_impl<0, 0, NamedExpr...>::operator=(raw_result_row); + _impl::operator=(raw_result_row); _raw_result_row = raw_result_row; _is_row = raw_result_row.data != nullptr;