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:
parent
9de56a748c
commit
dd73319bcf
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user