diff --git a/include/sqlpp11/insert_value_list.h b/include/sqlpp11/insert_value_list.h index 75aa3605..f366bafa 100644 --- a/include/sqlpp11/insert_value_list.h +++ b/include/sqlpp11/insert_value_list.h @@ -220,24 +220,6 @@ namespace sqlpp static_check_t::value, assert_insert_dynamic_set_statement_dynamic_t>, check_insert_set_t>; - namespace detail - { - template - struct new_statement_or_assert_impl - { - using type = Assert; - }; - - template - struct new_statement_or_assert_impl - { - using type = typename Policies::template _new_statement_t; - }; - } - template - using new_statement_or_assert_t = - typename detail::new_statement_or_assert_impl::type; - SQLPP_PORTABLE_STATIC_ASSERT( assert_no_unknown_tables_in_insert_assignments_t, "at least one insert assignment requires a table which is otherwise not known in the statement"); @@ -488,9 +470,6 @@ namespace sqlpp template using _new_statement_t = new_statement_t; - template - using _result_t = new_statement_or_assert_t; - using _consistency_check = assert_insert_values_t; auto default_values() const -> _new_statement_t @@ -520,12 +499,10 @@ namespace sqlpp template auto dynamic_set(Assignments... assignments) const - -> _result_t, - insert_list_t<_database_t, Assignments...>> + -> _new_statement_t, + insert_list_t<_database_t, Assignments...>> { - struct Check : check_insert_dynamic_set_t<_database_t, Assignments...> - { - }; + using Check = check_insert_dynamic_set_t<_database_t, Assignments...>; Check{}._(); return _set_impl<_database_t>(typename Check::type{}, assignments...);