mirror of
https://github.com/rbock/sqlpp11.git
synced 2024-11-15 20:31:16 +08:00
fixup
This commit is contained in:
parent
ee3f90d13a
commit
f48f1b9cf7
@ -258,7 +258,7 @@ namespace sqlpp
|
||||
-> _new_statement_t<check_update_static_set_t<Assignments...>, update_list_t<void, Assignments...>>
|
||||
{
|
||||
using Check = check_update_static_set_t<Assignments...>;
|
||||
return _set_impl<void>(Check{}, assignments...);
|
||||
return _set_impl<void>(Check{}, std::make_tuple(assignments...));
|
||||
}
|
||||
|
||||
template <typename... Assignments>
|
||||
@ -275,21 +275,13 @@ namespace sqlpp
|
||||
update_list_t<_database_t, Assignments...>>
|
||||
{
|
||||
using Check = check_update_dynamic_set_t<_database_t, Assignments...>;
|
||||
return _set_impl<_database_t>(Check{}, assignments...);
|
||||
return _set_impl<_database_t>(Check{}, std::make_tuple(assignments...));
|
||||
}
|
||||
|
||||
private:
|
||||
template <typename Database, typename Check, typename... Assignments>
|
||||
auto _set_impl(Check, Assignments... assignments) const -> inconsistent<Check>;
|
||||
|
||||
template <typename Database, typename... Assignments>
|
||||
auto _set_impl(consistent_t /*unused*/, Assignments... assignments) const
|
||||
-> _new_statement_t<consistent_t, update_list_t<Database, Assignments...>>
|
||||
{
|
||||
return {static_cast<const derived_statement_t<Policies>&>(*this),
|
||||
update_list_data_t<Database, Assignments...>{std::forward_as_tuple(assignments...)}};
|
||||
}
|
||||
|
||||
template <typename Database, typename... Assignments>
|
||||
auto _set_impl(consistent_t /*unused*/, std::tuple<Assignments...> assignments) const
|
||||
-> _new_statement_t<consistent_t, update_list_t<Database, Assignments...>>
|
||||
|
Loading…
Reference in New Issue
Block a user