mirror of
https://github.com/rbock/sqlpp11.git
synced 2024-11-16 04:47:18 +08:00
Fixed bug in dynamic result row.
This commit is contained in:
parent
a915bd9e50
commit
3ef3faa0f4
@ -166,7 +166,8 @@ namespace sqlpp
|
|||||||
dynamic_result_row_t(const raw_result_row_t& raw_result_row, std::vector<std::string> dynamic_columns):
|
dynamic_result_row_t(const raw_result_row_t& raw_result_row, std::vector<std::string> dynamic_columns):
|
||||||
_impl(raw_result_row),
|
_impl(raw_result_row),
|
||||||
_raw_result_row(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;
|
raw_result_row_t dynamic_row = raw_result_row;
|
||||||
if (_is_row)
|
if (_is_row)
|
||||||
@ -197,7 +198,7 @@ namespace sqlpp
|
|||||||
|
|
||||||
dynamic_result_row_t& operator=(const raw_result_row_t& raw_result_row)
|
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;
|
_raw_result_row = raw_result_row;
|
||||||
_is_row = raw_result_row.data != nullptr;
|
_is_row = raw_result_row.data != nullptr;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user