mirror of
https://github.com/rbock/sqlpp11.git
synced 2026-01-04 12:10:43 -06:00
Added test for selecting a constant value
This commit is contained in:
@@ -54,6 +54,11 @@ int Select(int, char**)
|
||||
|
||||
getColumn(db, t.alpha);
|
||||
|
||||
for (const auto& row : db(select(sqlpp::value(false).as(sqlpp::alias::a))))
|
||||
{
|
||||
std::cout << row.a << std::endl;
|
||||
}
|
||||
|
||||
for (const auto& row : db(select(all_of(t)).from(t).where(true)))
|
||||
{
|
||||
int64_t a = row.alpha;
|
||||
|
||||
Reference in New Issue
Block a user