mirror of
https://github.com/rbock/sqlpp11.git
synced 2026-01-04 20:20:59 -06:00
Added checks to prevent non-matching columns from being inserted
This commit is contained in:
@@ -43,7 +43,7 @@ int main()
|
||||
test::TabFoo f;
|
||||
test::TabBar t;
|
||||
|
||||
interpret(insert_into(t).columns(t.gamma, t.beta), printer).flush();
|
||||
interpret(insert_into(t).columns(t.beta, t.gamma), printer).flush();
|
||||
{
|
||||
auto i = insert_into(t).columns(t.gamma, t.beta);
|
||||
i.add_values(t.gamma = true, t.beta = "cheesecake");
|
||||
|
||||
Reference in New Issue
Block a user