Added checks to prevent non-matching columns from being inserted

This commit is contained in:
rbock
2014-02-09 15:06:42 +01:00
parent 8ede5c7a93
commit ae2f1948ac
9 changed files with 80 additions and 35 deletions

View File

@@ -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");