mirror of
https://github.com/rbock/sqlpp11.git
synced 2025-12-31 02:00:24 -06:00
Fixed warnings about missing initializers
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user