Fixed warnings about missing initializers

This commit is contained in:
rbock
2015-05-30 16:45:06 +02:00
parent 947bf9ddd3
commit 0807e57958
3 changed files with 17 additions and 11 deletions

View File

@@ -50,6 +50,7 @@ int Select(int, char**)
test::TabFoo f;
test::TabBar t;
const auto tab_a = f.as(sqlpp::alias::a);
getColumn(db, t.alpha);
@@ -80,6 +81,11 @@ int Select(int, char**)
std::cout << row.alpha << std::endl;
}
for (const auto& row : db(select(all_of(t), all_of(f)).from(t.join(f).on(t.alpha > f.omega).join(tab_a).on(t.alpha == tab_a.omega)).where(true)))
{
std::cout << row.alpha << std::endl;
}
for (const auto& row : db(select(count(t.alpha), avg(t.alpha)).from(t).where(true)))
{
std::cout << row.count << std::endl;