Moved static asserts for inconsistency errors much closer to call site

This commit is contained in:
rbock
2014-11-17 19:05:22 +01:00
parent 4ef00a03b2
commit 59734b3f51
24 changed files with 121 additions and 103 deletions

View File

@@ -38,10 +38,13 @@ MockDb::_serializer_context_t printer;
int main()
{
test::TabFoo f;
//test::TabFoo f;
test::TabBar t;
sqlpp::select(t.alpha).flags(sqlpp::all).from(t);
db(select(all_of(t)).from(t));
#if 0
select(t.alpha).flags(sqlpp::all).from(t);
for (const auto& row : db(select(all_of(t)).from(t).where(true)))
{
int64_t a = row.alpha;
@@ -98,6 +101,7 @@ int main()
std::cerr << serialize(stat, printer).str() << std::endl;
select(sqlpp::value(7).as(t.alpha));
#endif
return 0;
}