mirror of
https://github.com/rbock/sqlpp11.git
synced 2026-01-04 20:20:59 -06:00
Moved static asserts for inconsistency errors much closer to call site
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user