diff --git a/include/sqlpp11/select.h b/include/sqlpp11/select.h index 824645c4..0cb79d25 100644 --- a/include/sqlpp11/select.h +++ b/include/sqlpp11/select.h @@ -45,6 +45,8 @@ #include #include +#include + namespace sqlpp { struct select_name_t @@ -95,18 +97,59 @@ namespace sqlpp return blank_select_t().columns(columns...); } - template - blank_select_t dynamic_select(const Database&) + template + blank_select_t dynamic_select(Args& ...) { - static_assert(std::is_base_of::value, "Invalid database parameter"); + static_assert(false, "Invalid database parameter"); return {}; } - template - auto dynamic_select(const Database&, Columns... columns) -> decltype(blank_select_t().columns(columns...)) + template