Small fix for dynamic results and a hint for positional parameters

This commit is contained in:
Roland Bock
2014-01-04 18:26:11 +01:00
parent bbf18e4f7a
commit c140e13510
2 changed files with 2 additions and 1 deletions

View File

@@ -263,7 +263,7 @@ namespace sqlpp
dynamic_row.len += _last_static_index;
for (const auto& column : _dynamic_columns)
{
_dynamic_fields.at(column).assign(dynamic_row.data[0], dynamic_row.len[0]);
_dynamic_fields[column].assign(dynamic_row.data[0], dynamic_row.len[0]);
++dynamic_row.data;
++dynamic_row.len;
}

View File

@@ -150,6 +150,7 @@ namespace sqlpp
_limit(std::move(limit)),
_offset(std::move(offset))
{
// FIXME: Need to calculate parameter positions here and in other constructors
}
constexpr select_t(const Flags& flags, const ExpressionList& expression_list, const From& from,