0
0
mirror of https://github.com/rbock/sqlpp11.git synced 2024-11-15 20:31:16 +08:00

Add boolean expression test

This commit is contained in:
rbock 2018-12-07 09:42:43 +01:00
parent 9de56a748c
commit dd73319bcf

View File

@ -28,12 +28,13 @@
#include "MockDb.h"
#include <sqlpp11/sqlpp11.h>
int BooleanExpression(int, char* [])
int BooleanExpression(int, char*[])
{
MockDb db = {};
const auto t = test::TabBar{};
auto x = boolean_expression(db, not(t.alpha == 7));
x = sqlpp::boolean_expression(db, true);
x = sqlpp::boolean_expression<MockDb>(t.beta.like("%cheesecake"));
x = x and boolean_expression(db, t.gamma);