Added a bunch of table tests to select

And some hints regarding additional tests and how to turn them of for
subselects
This commit is contained in:
rbock
2014-04-07 22:02:08 +02:00
parent dba5c992ed
commit 6737bf901d
9 changed files with 26 additions and 11 deletions

View File

@@ -61,13 +61,11 @@ int main()
const std::string b = row.tabBar.beta;
}
#warning this should fail because f is not in from()
for (const auto& row : db(select(f.omega, all_of(t).as(t), t.gamma).from(t).where(true)))
for (const auto& row : db(select(all_of(t).as(t), t.gamma).from(t).where(t.alpha > 7)))
{
int64_t a = row.tabBar.alpha;
const std::string b = row.tabBar.beta;
const bool g = row.gamma;
const float o = row.omega;
}
return 0;