mirror of
https://github.com/rbock/sqlpp11.git
synced 2026-01-04 04:00:39 -06:00
Added several checks for correct types in insert columns/values
This commit is contained in:
@@ -35,6 +35,7 @@ DbMock::_context_t printer(std::cerr);
|
||||
int main()
|
||||
{
|
||||
test::TabBar t;
|
||||
test::TabFoo f;
|
||||
|
||||
auto x = t.alpha = 7;
|
||||
auto y = t.beta = "kaesekuchen";
|
||||
@@ -58,6 +59,8 @@ int main()
|
||||
interpret(update(t), printer).flush();
|
||||
interpret(update(t).set(t.gamma = false), printer).flush();
|
||||
interpret(update(t).set(t.gamma = false).where(t.beta != "transparent"), printer).flush();
|
||||
#warning make this fail!
|
||||
interpret(update(t).set(t.beta = f.delta).where(t.beta != "transparent"), printer).flush();
|
||||
auto u = dynamic_update(db, t).dynamic_set(t.gamma = false).dynamic_where();
|
||||
u.add_set(t.gamma = false);
|
||||
interpret(u, printer).flush();
|
||||
|
||||
Reference in New Issue
Block a user