From 303ee750adb43a96207d30f6e4834f6648672bcf Mon Sep 17 00:00:00 2001 From: rbock Date: Fri, 26 Jun 2015 16:16:07 +0200 Subject: [PATCH] Added test for selecting a constant value --- tests/Select.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/Select.cpp b/tests/Select.cpp index 1762a47e..42fe4393 100644 --- a/tests/Select.cpp +++ b/tests/Select.cpp @@ -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;