0
0
mirror of https://github.com/rbock/sqlpp11.git synced 2024-11-16 04:47:18 +08:00

Added a few serializer tests for free function select clauses

This commit is contained in:
rbock 2016-04-15 18:21:22 +02:00
parent 1e1b388a67
commit 10bdf4cfca
4 changed files with 21 additions and 0 deletions

View File

@ -311,6 +311,13 @@ namespace sqlpp
{
return statement_t<void, no_having_t>().having(std::forward<T>(t));
}
template <typename Database, typename T>
auto dynamic_having(const Database&, T&& t)
-> decltype(statement_t<void, no_having_t>().dynamic_having(std::forward<T>(t)))
{
return statement_t<void, no_having_t>().dynamic_having(std::forward<T>(t));
}
}
#endif

View File

@ -38,5 +38,6 @@
#include <sqlpp11/boolean_expression.h>
#include <sqlpp11/without_table_check.h>
#include <sqlpp11/schema_qualified_table.h>
#include <sqlpp11/custom_query.h>
#endif

View File

@ -397,6 +397,18 @@ namespace sqlpp
{
return statement_t<void, no_where_t<false>>().where(std::forward<T>(t));
}
template <typename Database, typename T>
auto dynamic_where(const Database&, T&& t)
-> decltype(statement_t<Database, no_where_t<false>>().dynamic_where(std::forward<T>(t)))
{
return statement_t<Database, no_where_t<false>>().dynamic_where(std::forward<T>(t));
}
inline auto unconditionally() -> decltype(statement_t<void, no_where_t<false>>().unconditionally())
{
return statement_t<void, no_where_t<false>>().unconditionally();
}
}
#endif

View File

@ -23,6 +23,7 @@
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
set(test_serializer_names
CustomQuery
From
In
Where