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:
parent
1e1b388a67
commit
10bdf4cfca
@ -311,6 +311,13 @@ namespace sqlpp
|
|||||||
{
|
{
|
||||||
return statement_t<void, no_having_t>().having(std::forward<T>(t));
|
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
|
#endif
|
||||||
|
@ -38,5 +38,6 @@
|
|||||||
#include <sqlpp11/boolean_expression.h>
|
#include <sqlpp11/boolean_expression.h>
|
||||||
#include <sqlpp11/without_table_check.h>
|
#include <sqlpp11/without_table_check.h>
|
||||||
#include <sqlpp11/schema_qualified_table.h>
|
#include <sqlpp11/schema_qualified_table.h>
|
||||||
|
#include <sqlpp11/custom_query.h>
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -397,6 +397,18 @@ namespace sqlpp
|
|||||||
{
|
{
|
||||||
return statement_t<void, no_where_t<false>>().where(std::forward<T>(t));
|
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
|
#endif
|
||||||
|
@ -23,6 +23,7 @@
|
|||||||
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
set(test_serializer_names
|
set(test_serializer_names
|
||||||
|
CustomQuery
|
||||||
From
|
From
|
||||||
In
|
In
|
||||||
Where
|
Where
|
||||||
|
Loading…
Reference in New Issue
Block a user